1 | // |
---|
2 | // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo |
---|
3 | // |
---|
4 | // extension.cfa -- |
---|
5 | // |
---|
6 | // Author : Peter A. Buhr |
---|
7 | // Created On : Mon Jul 4 20:42:43 2016 |
---|
8 | // Last Modified By : Peter A. Buhr |
---|
9 | // Last Modified On : Tue Nov 6 17:53:21 2018 |
---|
10 | // Update Count : 47 |
---|
11 | // |
---|
12 | |
---|
13 | __extension__ __extension__ int a, b, c; |
---|
14 | __extension__ struct S { |
---|
15 | __extension__ int a, b, c; |
---|
16 | }; |
---|
17 | __extension__ union U { |
---|
18 | __extension__ int a, b, c; |
---|
19 | }; |
---|
20 | __extension__ enum E { |
---|
21 | R, G, B, |
---|
22 | }; |
---|
23 | __extension__ typedef int www; // typedefs are removed => no output |
---|
24 | __extension__ __extension__ int f(); |
---|
25 | //__extension__ __extension__ asm( "nop" ); |
---|
26 | #ifdef __cforall |
---|
27 | __extension__ __extension__ extern "C" { |
---|
28 | int i, j; |
---|
29 | } |
---|
30 | #endif // __cforall |
---|
31 | |
---|
32 | __extension__ int fred( int p ) { |
---|
33 | __extension__ struct S { |
---|
34 | __extension__ int a, b, c; |
---|
35 | #ifdef __cforall |
---|
36 | __extension__ * int x, y, z; |
---|
37 | #endif // __cforall |
---|
38 | }; |
---|
39 | int i = __extension__ a + __extension__ 3; |
---|
40 | __extension__ 3; |
---|
41 | __extension__ a; |
---|
42 | __extension__ int a, b, c; |
---|
43 | |
---|
44 | __extension__ a = __extension__ b + __extension__ c; |
---|
45 | __extension__ fred( 3 ); |
---|
46 | __extension__ int mary( int p ) {} |
---|
47 | __extension__ sizeof( 3 ); |
---|
48 | __extension__ (3 || 4); |
---|
49 | __extension__ __alignof__( __extension__ a ); |
---|
50 | __extension__ a || __extension__ b && __extension__ c; |
---|
51 | __extension__ a > __extension__ b ? __extension__ c : __extension__ c; |
---|
52 | __extension__ a = __extension__ ( __extension__ b + __extension__ c ); |
---|
53 | __extension__ a, __extension__ b, __extension__ c; |
---|
54 | } |
---|
55 | |
---|
56 | // Local Variables: // |
---|
57 | // tab-width: 4 // |
---|
58 | // compile-command: "cfa extension.cfa" // |
---|
59 | // End: // |
---|