source: tests/typedef.cfa@ 5a8037a7

ADT arm-eh ast-experimental cleanup-dtors enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since 5a8037a7 was dc8511c, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

first attempt at updating suffixes for test programs

  • Property mode set to 100644
File size: 747 bytes
RevLine 
[51b73452]1typedef int T;
2
3void f( void ) {
[c6b1105]4 int T( T p ) { return 3; }
[0b2961f]5 T( 3 );
[51b73452]6}
7
8struct {
[0b2961f]9 T (T);
[51b73452]10} fred = { 3 };
11
12typedef int (*a)(int, char);
13a b;
14
15int g(void) {
[0b2961f]16 double a;
[51b73452]17}
18a c;
19
[e5b96bf]20typedef typeof(3) x, y; // GCC
[51b73452]21
[0b2961f]22x p;
23y q;
[51b73452]24
25int main() {
[e5b96bf]26 typedef typeof(3) z, p;
[0b2961f]27 z w;
28 p x;
[51b73452]29}
30
[a65d92e]31// new-style function definitions
[51b73452]32
33typedef [10] * int arrayOf10Pointers;
[0b2961f]34arrayOf10Pointers array;
[51b73452]35typedef const * int constantPointer;
36typedef * [ int ]( [] int ) funcPtr;
37typedef [ int ] funcProto( [] int );
38typedef [ int, int ] tupleType;
39typedef * [ int, int ] tupleTypePtr;
[c6b1105]40typedef * int c, d;
[51b73452]41typedef [ int ] f( * int ), g;
42typedef [ * [static 10] int ] t;
[c6b1105]43typedef [ * [static 10] int x ] h();
[a65d92e]44
45// Local Variables: //
46// tab-width: 4 //
47// End: //
Note: See TracBrowser for help on using the repository browser.