test that parser is oblivious to set of ABIs

This commit is contained in:
Mazdak Farrokhzad 2019-10-28 04:13:38 +01:00
parent 1db4d607e7
commit b189dfe507

View file

@ -0,0 +1,17 @@
// check-pass
// Check that from the grammar's point of view,
// the specific set of ABIs is not part of it.
fn main() {}
#[cfg(FALSE)]
extern "some_abi_that_we_are_sure_does_not_exist_semantically" fn foo() {}
#[cfg(FALSE)]
extern "some_abi_that_we_are_sure_does_not_exist_semantically" {
fn foo();
}
#[cfg(FALSE)]
type T = extern "some_abi_that_we_are_sure_does_not_exist_semantically" fn();