URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [guality/] [redeclaration1.C] - Rev 693
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do run }
// { dg-options "-g" }
// { dg-skip-if "" { *-*-* } { "-flto" } { "" } }
volatile int l;
namespace S
{
int i = 24;
void __attribute__((noinline))
f()
{
int i = 42;
l = i; // { dg-final { gdb-test 14 "i" "42" } }
{
extern int i;
l = i; // { dg-final { gdb-test 17 "i" "24" } }
}
}
}
int
main (void)
{
S::f ();
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log