gcc/testsuite/c-c++-common/Wxor-used-as-pow-pr107002-0.c
raw| 1 | /* Regression test for ICE seen in -Wxor-used-as-pow with |
| 2 | -ftrack-macro-expansion=0 in source-printing (fix-it-hints, |
| 3 | specifically). */ |
| 4 | |
| 5 | /* { dg-options "-ftrack-macro-expansion=0 -fdiagnostics-show-caret" } */ |
| 6 | |
| 7 | #define test(lower, higher, a, b, c, d) \ |
| 8 | char test##line[ (a higher b lower c higher d) == 0 ? -1 : 1]; |
| 9 | test (|, ^, 1, 2, 2, 1) |