source: tests/bugs/196.cfa @ d3b8752

Last change on this file since d3b8752 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
RevLine 
[d13dd6b]1// Trac ticket
2// https://cforall.uwaterloo.ca/trac/ticket/196
3
[fd54fef]4forall(T &)
[d13dd6b]5struct link;
6
[fd54fef]7forall(T &)
[d13dd6b]8struct link {
9        link(T) * next;
10};
11
12// -----
13
[fd54fef]14forall(T &)
[d13dd6b]15struct foo;
16
[fd54fef]17forall(U &)
[d13dd6b]18struct bar {
19        foo(U) * data;
20};
21
[fd54fef]22forall(T &)
[d13dd6b]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.