URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [c99-arraydecl-2.c] - Rev 404
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test for C99 array declarators: expression must be an assignment-expression. PR 11943. */ /* Origin: Joseph Myers <jsm@polyomino.org.uk> */ /* { dg-do compile } */ /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */ void foo (void) { int a[2, 3]; /* { dg-error "parse|syntax|expected" "bad array declarator" } */ void b(int x[2, 3]); /* { dg-error "parse|syntax|expected" "bad array declarator" } */ void c(int [2, 3]); /* { dg-error "parse|syntax|expected" "bad array declarator" } */ void d(int *x[restrict 2, 3]); /* { dg-error "parse|syntax|expected" "bad array declarator" } */ void e(int *x[static restrict 2, 3]); /* { dg-error "parse|syntax|expected" "bad array declarator" } */ void f(int *x[restrict static 2, 3]); /* { dg-error "parse|syntax|expected" "bad array declarator" } */ }
Go to most recent revision | Compare with Previous | Blame | View Log