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/] [noreturn-4.c] - Rev 604
Go to most recent revision | Compare with Previous | Blame | View Log
/* Check for "noreturn" warning in main. */ /* { dg-do compile } */ /* { dg-options "-O2 -Wmissing-noreturn -ffreestanding" } */ extern void exit (int) __attribute__ ((__noreturn__)); int main (void) /* { dg-warning "function might be possible candidate for attribute 'noreturn'" "warn for main" } */ { exit (0); }
Go to most recent revision | Compare with Previous | Blame | View Log