Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/gnu-cond-expr-3.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
7 int a, b, c; | 7 int a, b, c; |
8 | 8 |
9 void | 9 void |
10 f (void) | 10 f (void) |
11 { | 11 { |
12 c = (++a ? : b); /* { dg-error "ISO C forbids omitting the middle term of a \\?: expression" } */ | 12 c = (++a ? : b); /* { dg-error "ISO C forbids omitting the middle term of a '\\?:' expression" } */ |
13 } | 13 } |