blob: e2af375215497369fb63c4e5d079d3bc9318b094 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do preprocess } */
/* Test the ? : opearator, for precedence and both true and false. */
#if 1 ? 1 ? 2 : 0 : 0
#error OK /* { dg-error "OK" "nested ? :" } */
#endif
#if ((0) ? (1) ? (2) : (3) : (4) ? (5): (6)) == 5
#error OK /* { dg-error "OK" "nested ? : with parens" } */
#endif
|