source: tests/bugs/196.cfa @ 7a15b7e

ADTast-experimentalenumforall-pointer-decaypthread-emulationqualifiedEnum
Last change on this file since 7a15b7e was fd54fef, checked in by Michael Brooks <mlbrooks@…>, 4 years ago

Converting the project to use the new syntax for otype, dtype and ttytpe.

Changed prelude (gen), libcfa and test suite to use it. Added a simple deprecation rule of the old syntax to the parser; we might wish to support both syntaxes "officially," like with an extra CLI switch, but this measure should serve as a simple reminder for our team to try the new syntax.

  • Property mode set to 100644
File size: 304 bytes
Line 
1// Trac ticket
2// https://cforall.uwaterloo.ca/trac/ticket/196
3
4forall(T &)
5struct link;
6
7forall(T &)
8struct link {
9        link(T) * next;
10};
11
12// -----
13
14forall(T &)
15struct foo;
16
17forall(U &)
18struct bar {
19        foo(U) * data;
20};
21
22forall(T &)
23struct foo {};
24
25// -----
26
27int main(int argc, char * argv[]) {
28        return 0;
29}
Note: See TracBrowser for help on using the repository browser.