ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change
on this file since ad8e062 was
51b7345,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
initial commit
|
-
Property mode set to
100644
|
File size:
684 bytes
|
Rev | Line | |
---|
[51b7345] | 1 | typedef int T; |
---|
| 2 | |
---|
| 3 | void f( void ) { |
---|
| 4 | int T( T ); |
---|
| 5 | T( 3 ); |
---|
| 6 | } |
---|
| 7 | |
---|
| 8 | struct { |
---|
| 9 | T (T); |
---|
| 10 | } fred = { 3 }; |
---|
| 11 | |
---|
| 12 | typedef int (*a)(int, char); |
---|
| 13 | a b; |
---|
| 14 | |
---|
| 15 | int g(void) { |
---|
| 16 | double a; |
---|
| 17 | } |
---|
| 18 | a c; |
---|
| 19 | |
---|
| 20 | typedef typeof(3) x, y; /* GCC */ |
---|
| 21 | |
---|
| 22 | x p; |
---|
| 23 | y q; |
---|
| 24 | |
---|
| 25 | int main() { |
---|
| 26 | typedef typeof(3) z, p; |
---|
| 27 | z w; |
---|
| 28 | p x; |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | /* new-style function definitions */ |
---|
| 32 | |
---|
| 33 | typedef [10] * int arrayOf10Pointers; |
---|
| 34 | arrayOf10Pointers array; |
---|
| 35 | typedef const * int constantPointer; |
---|
| 36 | typedef * [ int ]( [] int ) funcPtr; |
---|
| 37 | typedef [ int ] funcProto( [] int ); |
---|
| 38 | typedef [ int, int ] tupleType; |
---|
| 39 | typedef * [ int, int ] tupleTypePtr; |
---|
| 40 | typedef * int a, b; |
---|
| 41 | typedef [ int ] f( * int ), g; |
---|
| 42 | typedef [ * [static 10] int ] t; |
---|
| 43 | typedef [ * [static 10] int x ] f(); |
---|
Note: See
TracBrowser
for help on using the repository browser.