repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[gcn] mkoffload.cc: Print fatal error if -march has no multilib but generic has
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
debug
/
dwarf2
/
pr46123-2.C
blob
84b168223eaaa9c846e7104a8a27e5188fe9a54f
1
// PR debug/46123
2
// { dg-do compile }
3
// { dg-options "-g" }
4
5
struct foo
6
{
7
static int bar ()
8
{
9
int i;
10
static int baz = 1;
11
{
12
static int baz = 2;
13
i = baz++;
14
}
15
{
16
struct baz
17
{
18
static int m ()
19
{
20
static int n;
21
return n += 10;
22
}
23
};
24
baz a;
25
i += a.m ();
26
}
27
{
28
static int baz = 3;
29
i += baz;
30
baz += 30;
31
}
32
i += baz;
33
baz += 60;
34
return i;
35
}
36
};
37
38
int main ()
39
{
40
foo x;
41
42
if (x.bar () != 16)
43
return 1;
44
if (x.bar() != 117)
45
return 1;
46
return 0;
47
}