about summary refs log tree commit diff
path: root/tests/ui/parser/extern-abi-syntactic.rs
blob: 28565a3f4befd843f54a0b85b532827546aaa27c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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();