URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [c1x-noreturn-5.c] - Rev 848
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test C1X _Noreturn. Test invalid uses. */ /* { dg-do compile } */ /* { dg-options "-std=c1x -pedantic-errors" } */ _Noreturn struct s; /* { dg-error "empty declaration" } */ typedef _Noreturn void f (void); /* { dg-error "typedef" } */ void g (_Noreturn void fp (void)); /* { dg-error "parameter" } */ _Noreturn void (*p) (void); /* { dg-error "variable" } */ struct t { int a; _Noreturn void (*f) (void); }; /* { dg-error "expected" } */ int *_Noreturn *q; /* { dg-error "expected" } */ int i = sizeof (_Noreturn int (*) (void)); /* { dg-error "expected" } */
Go to most recent revision | Compare with Previous | Blame | View Log