Changes in src/tests/Constant0-1.c [62edde5:a0dcd2e]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/Constant0-1.c
r62edde5 ra0dcd2e 1 //Constant test declaration 2 // Cforall extension 1 // Constant test declaration 3 2 4 3 // value … … 6 5 int 0; 7 6 const int 0; 8 static const int 0;9 7 int 1; 10 8 const int 1; 11 static const int 1; 12 int 0, 1; 13 const int 0, 1; 9 struct { int i; } 0; 10 const struct { int i; } 1; 11 12 #ifdef DUPS 13 14 int 0; 15 const int 0; 16 int 1; 17 const int 1; 14 18 int (0), (1); 15 19 int ((0)), ((1)); 16 static const int 0, 1; 20 const int 0, 1; 21 const int (0), (1); 17 22 struct { int i; } 0; 18 23 const struct { int i; } 1; 19 static const struct { int i; } 1; 24 25 #endif // DUPS 26 27 #ifndef NEWDECL 20 28 21 29 // pointer 30 31 int *0, *1; 32 int * const (0), * const 1; 33 struct { int i; } *0; 34 const struct { int i; } *0; 35 int (*(* const x)), **0; 36 37 #ifdef DUPS 22 38 23 39 int *0, *1; … … 28 44 int (* const 0), (* const 1); 29 45 int ((* const 0)), ((* const 1)); 46 int (*(* const x)), *(*0); 47 int (*(* const x)), (*(*0)); 30 48 struct { int i; } *0; 49 const struct { int i; } *0; 50 int (*(* const x)), **0; 51 52 #endif // DUPS 53 54 #else 31 55 32 56 // Cforall style … … 34 58 * int x, 0; 35 59 const * int x, 0; 36 static const * int x, 0;37 60 * struct { int i; } 0; 38 61 const * struct { int i; } 0; 39 static const * struct { int i; } 0;40 static * int x, 0;41 static const * int x, 0;42 62 const * * int x, 0; 43 63 64 #ifdef DUPS 65 66 * int x, 0; 67 const * int x, 0; 68 69 #endif // DUPS 70 71 #endif // NEWDECL 72 44 73 int main() { 74 #ifndef NEWDECL 45 75 int 1, * 0; 76 #else 46 77 * int x, 0; 78 #endif // NEWDECL 47 79 }
Note: See TracChangeset
for help on using the changeset viewer.