URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [c1x-static-assert-4.c] - Rev 689
Compare with Previous | Blame | View Log
/* Test C1X static assertions. More invalid assertions. */ /* { dg-do compile } */ /* { dg-options "-std=c1x -pedantic-errors" } */ /* Static assertions not valid in old-style parameter declarations because declarations there must have declarators. */ void f (i) int i; _Static_assert (1, ""); /* { dg-error "expected" } */ { }