URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [pragma-diagnostic-1.c] - Rev 754
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-options "-Wuninitialized" } { dg-do compile } */ void f (unsigned); #define CODE_WITH_WARNING \ int a; \ f (a) #pragma GCC diagnostic ignored "-Wuninitialized" void g (void) { CODE_WITH_WARNING; } #pragma GCC diagnostic push #pragma GCC diagnostic error "-Wuninitialized" void h (void) { CODE_WITH_WARNING; /* { dg-error "uninitialized" } */ } /* { dg-message "some warnings being treated as errors" "" {target *-*-*} 0 } */
Go to most recent revision | Compare with Previous | Blame | View Log