diff options
Diffstat (limited to 'gcc/testsuite/gcc.apple/comma-expr-1.c')
-rw-r--r-- | gcc/testsuite/gcc.apple/comma-expr-1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.apple/comma-expr-1.c b/gcc/testsuite/gcc.apple/comma-expr-1.c new file mode 100644 index 00000000000..35c082ec78f --- /dev/null +++ b/gcc/testsuite/gcc.apple/comma-expr-1.c @@ -0,0 +1,6 @@ +/* APPLE LOCAL file AltiVec */ +/* Comma expressions are not considered constant per C99, even if their + constituent elements are. */ +/* { dg-do compile } */ + +int i = (1, 2); /* { dg-error "initializer element is not constant" } */ |