]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/c-c++-common/cilk-plus/AN/parser_errors.c
fd4fe5419b641b49ac6ab46a19643bd930f4fcc8
[thirdparty/gcc.git] / gcc / testsuite / c-c++-common / cilk-plus / AN / parser_errors.c
1 /* { dg-do compile } */
2 /* { dg-options "-fcilkplus" } */
3
4 int main (void)
5 {
6 int array[10][10], array2[10];
7
8 array2[:] = array2[: ; /* { dg-error "expected ']'" } */
9
10 return 0; /* { dg-error "expected ';' before" "" { target c } } */
11 }