Changes in tests/errors/scope.cfa [4d860ea3:686cb63]
- File:
-
- 1 edited
-
tests/errors/scope.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/errors/scope.cfa
r4d860ea3 r686cb63 1 // Keep harmonized with errors/scope. 1 int thisIsAnError; 2 int thisIsAnError; 2 3 3 #ifdef OMIT_DRIVING_REJECTIONS 4 // For manual sanity checking: 5 // Leave out the offensive declarations and verify that what's left is accepted. 6 #define EXPREJ(...) 7 #else 8 #define EXPREJ(...) __VA_ARGS__ 9 #endif 4 int thisIsNotAnError; 5 float thisIsNotAnError; 10 6 7 int thisIsAlsoNotAnError() { 8 int thisIsNotAnError; 9 } 11 10 12 int thisIsAnError; 13 EXPREJ( int thisIsAnError; ) 11 int thisIsAlsoNotAnError( double x ) { 12 } 14 13 15 int thisIsNotAnError;16 float thisIsNotAnError;14 double thisIsStillNotAnError( double ); 15 double thisIsStillNotAnError( double ); 17 16 18 int thisIsAlsoNotAnError() { 19 int thisIsNotAnError; 20 } 17 double butThisIsAnError( double ) { 18 } 21 19 22 int thisIsAlsoNotAnError( double x ) { 23 } 24 25 double thisIsStillNotAnError( double ); 26 double thisIsStillNotAnError( double ); 27 28 double butThisIsAnError( double ) { 29 } 30 EXPREJ( 31 double butThisIsAnError( double ) { 32 } 33 ) 20 double butThisIsAnError( double ) { 21 } 34 22 35 23 // Local Variables: //
Note:
See TracChangeset
for help on using the changeset viewer.