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.2.2/] [gcc/] [testsuite/] [gcc.dg/] [attr-used-2.c] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-Wall -O2" } */ static int xyzzy __attribute__((__used__)) = 1; void foo() { int x __attribute__((__used__)); /* { dg-warning "attribute ignored|unused variable" } */ } /* { dg-final { scan-assembler "xyzzy" } } */
Go to most recent revision | Compare with Previous | Blame | View Log