Changeset 4d860ea3 for tests/errors
- Timestamp:
- Oct 6, 2023, 2:58:48 PM (10 months ago)
- Branches:
- master
- Children:
- 500a60f
- Parents:
- 0860d9c
- Location:
- tests/errors
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/errors/.expect/scope.txt
r0860d9c r4d860ea3 1 errors/scope.cfa: 2:1 error: duplicate object definition for thisIsAnError: signed int2 errors/scope.cfa: 20:1 error: duplicate function definition for butThisIsAnError: function1 errors/scope.cfa:13:1 error: duplicate object definition for thisIsAnError: signed int 2 errors/scope.cfa:30:1 error: duplicate function definition for butThisIsAnError: function 3 3 ... with parameters 4 4 double -
tests/errors/scope.cfa
r0860d9c r4d860ea3 1 int thisIsAnError; 2 int thisIsAnError; 1 // Keep harmonized with errors/scope. 3 2 4 int thisIsNotAnError; 5 float thisIsNotAnError; 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 6 10 7 int thisIsAlsoNotAnError() {8 int thisIsNotAnError;9 }10 11 11 int thisIsAlsoNotAnError( double x ) { 12 } 12 int thisIsAnError; 13 EXPREJ( int thisIsAnError; ) 13 14 14 double thisIsStillNotAnError( double );15 double thisIsStillNotAnError( double );15 int thisIsNotAnError; 16 float thisIsNotAnError; 16 17 17 double butThisIsAnError( double ) { 18 } 18 int thisIsAlsoNotAnError() { 19 int thisIsNotAnError; 20 } 19 21 20 double butThisIsAnError( double ) { 21 } 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 ) 22 34 23 35 // Local Variables: //
Note: See TracChangeset
for help on using the changeset viewer.