ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change
on this file since cdacb73 was
d13dd6b,
checked in by Andrew Beach <ajbeach@…>, 4 years ago
|
Added the example for trac#196.
|
-
Property mode set to
100644
|
File size:
324 bytes
|
Line | |
---|
1 | // Trac ticket |
---|
2 | // https://cforall.uwaterloo.ca/trac/ticket/196 |
---|
3 | |
---|
4 | forall(dtype T) |
---|
5 | struct link; |
---|
6 | |
---|
7 | forall(dtype T) |
---|
8 | struct link { |
---|
9 | link(T) * next; |
---|
10 | }; |
---|
11 | |
---|
12 | // ----- |
---|
13 | |
---|
14 | forall(dtype T) |
---|
15 | struct foo; |
---|
16 | |
---|
17 | forall(dtype U) |
---|
18 | struct bar { |
---|
19 | foo(U) * data; |
---|
20 | }; |
---|
21 | |
---|
22 | forall(dtype T) |
---|
23 | struct foo {}; |
---|
24 | |
---|
25 | // ----- |
---|
26 | |
---|
27 | int main(int argc, char * argv[]) { |
---|
28 | return 0; |
---|
29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.