Changes in tests/genericUnion.cfa [fd54fef:d5b2ac8]
- File:
-
- 1 edited
-
tests/genericUnion.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/genericUnion.cfa
rfd54fef rd5b2ac8 16 16 #include <limits.hfa> 17 17 18 forall( T)18 forall(otype T) 19 19 union ByteView { 20 20 T val; … … 22 22 }; 23 23 24 forall( T)24 forall(otype T) 25 25 void print(ByteView(T) x) { 26 26 for (int i = 0; i < sizeof(int); i++) { // want to change to sizeof(T) … … 29 29 } 30 30 31 forall( T)31 forall(otype T) 32 32 void f(ByteView(T) x, T val) { 33 33 print(x);
Note:
See TracChangeset
for help on using the changeset viewer.