URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [debug/] [pr46123.C] - Rev 717
Go to most recent revision | Compare with Previous | Blame | View Log
// PR debug/46123
// { dg-do compile }
// { dg-options "-g -feliminate-dwarf2-dups" }
struct foo
{
static int bar ()
{
int i;
static int baz = 1;
{
static int baz = 2;
i = baz++;
}
{
struct baz
{
static int m ()
{
static int n;
return n += 10;
}
};
baz a;
i += a.m ();
}
{
static int baz = 3;
i += baz;
baz += 30;
}
i += baz;
baz += 60;
return i;
}
};
int main ()
{
foo x;
if (x.bar () != 16)
return 1;
if (x.bar() != 117)
return 1;
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log