- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/tuple/tupleVariadic.c
r1dcd52a3 r46dfe66 95 95 } 96 96 97 forall(ttype T | { void foo(T); }) void bar(T x) {}98 void foo(int) {}99 100 97 int main() { 101 98 array * x0 = new(); … … 120 117 func(3, 2.0, 111, 4.145); 121 118 printf("finished func\n"); 122 123 {124 // T = [const int] -- this ensures that void(*)(int) satisfies void(*)(const int)125 const int x;126 bar(x);127 }128 119 } 129 120
Note:
See TracChangeset
for help on using the changeset viewer.