ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
string
with_gc
Last change
on this file since f7d59bf was 843054c2, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago |
licencing: seventh groups of files
|
-
Property mode
set to
100644
|
File size:
666 bytes
|
Line | |
---|
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 x = 3, y = 3; /* GCC */
|
---|
21 |
|
---|
22 | // x p;
|
---|
23 | // y q;
|
---|
24 |
|
---|
25 | int main() {
|
---|
26 | // typedef z = p = 3;
|
---|
27 | }
|
---|
28 |
|
---|
29 | /* new-style function definitions */
|
---|
30 |
|
---|
31 | typedef [10] * int arrayOf10Pointers;
|
---|
32 | arrayOf10Pointers x;
|
---|
33 | typedef const * int constantPointer;
|
---|
34 | typedef * [ int ]( [] int ) funcPtr;
|
---|
35 | typedef [ int ] funcProto( [] int );
|
---|
36 | typedef [ int, int ] tupleType;
|
---|
37 | typedef * [ int, int ] tupleTypePtr;
|
---|
38 | typedef * int a, b;
|
---|
39 | typedef [ int ] f( * int ), g;
|
---|
40 | typedef [ * [static 10] int ] t;
|
---|
41 | typedef [ * [static 10] int x ] f();
|
---|
Note:
See
TracBrowser
for help on using the repository browser.