]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/variadic-ffi-syntactic-pass.rs
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / parser / variadic-ffi-syntactic-pass.rs
1 // check-pass
2
3 fn main() {}
4
5 #[cfg(FALSE)]
6 fn f1_1(x: isize, ...) {}
7
8 #[cfg(FALSE)]
9 fn f1_2(...) {}
10
11 #[cfg(FALSE)]
12 extern "C" fn f2_1(x: isize, ...) {}
13
14 #[cfg(FALSE)]
15 extern "C" fn f2_2(...) {}
16
17 #[cfg(FALSE)]
18 extern "C" fn f2_3(..., x: isize) {}
19
20 #[cfg(FALSE)]
21 extern fn f3_1(x: isize, ...) {}
22
23 #[cfg(FALSE)]
24 extern fn f3_2(...) {}
25
26 #[cfg(FALSE)]
27 extern fn f3_3(..., x: isize) {}
28
29 #[cfg(FALSE)]
30 extern {
31     fn e_f1(...);
32     fn e_f2(..., x: isize);
33 }
34
35 struct X;
36
37 #[cfg(FALSE)]
38 impl X {
39     fn i_f1(x: isize, ...) {}
40     fn i_f2(...) {}
41     fn i_f3(..., x: isize, ...) {}
42     fn i_f4(..., x: isize, ...) {}
43 }
44
45 #[cfg(FALSE)]
46 trait T {
47     fn t_f1(x: isize, ...) {}
48     fn t_f2(x: isize, ...);
49     fn t_f3(...) {}
50     fn t_f4(...);
51     fn t_f5(..., x: isize) {}
52     fn t_f6(..., x: isize);
53 }