Fix spaceship preproc tests for previous change
This commit is contained in:
parent
100d4d5350
commit
346ede21c3
4 changed files with 13 additions and 3 deletions
6
Examples/test-suite/errors/cpp_pp_expressions_bad.i
Normal file
6
Examples/test-suite/errors/cpp_pp_expressions_bad.i
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
%module xxx
|
||||
/* Note: needs -Wextra to see these warnings */
|
||||
|
||||
/* Spaceship operator doesn't seem to be allowed in preprocessor expressions. */
|
||||
#if (4 <=> 2) < 0
|
||||
#endif
|
||||
2
Examples/test-suite/errors/cpp_pp_expressions_bad.stderr
Normal file
2
Examples/test-suite/errors/cpp_pp_expressions_bad.stderr
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
cpp_pp_expressions_bad.i:5: Warning 202: Could not evaluate expression '(4 <=> 2) < 0'
|
||||
cpp_pp_expressions_bad.i:5: Warning 202: Spaceship operator (<=>) not allowed in preprocessor expression
|
||||
|
|
@ -67,6 +67,8 @@
|
|||
#if "1" == +"1"
|
||||
#endif
|
||||
|
||||
/* Spaceship operator doesn't seem to be allowed in preprocessor expressions. */
|
||||
/* Spaceship operator doesn't seem to be allowed in preprocessor expressions,
|
||||
* and isn't valid in C at all.
|
||||
*/
|
||||
#if (4 <=> 2) < 0
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -31,5 +31,5 @@ pp_expressions_bad.i:64: Warning 202: Could not evaluate expression '"1" == ~"1"
|
|||
pp_expressions_bad.i:64: Warning 202: Syntax error: attempt to apply unary operator to string
|
||||
pp_expressions_bad.i:67: Warning 202: Could not evaluate expression '"1" == +"1"'
|
||||
pp_expressions_bad.i:67: Warning 202: Syntax error: attempt to apply unary operator to string
|
||||
pp_expressions_bad.i:71: Warning 202: Could not evaluate expression '(4 <=> 2) < 0'
|
||||
pp_expressions_bad.i:71: Warning 202: Spaceship operator (<=>) not allowed in preprocessor expression
|
||||
pp_expressions_bad.i:73: Warning 202: Could not evaluate expression '(4 <=> 2) < 0'
|
||||
pp_expressions_bad.i:73: Warning 202: Syntax error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue