projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
93b0750b93c33b29ea28000ee0c2df1c2ce5aa64
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
guality
/
redeclaration1.C
1
// { dg-do run }
2
// { dg-options "-g" }
3
// { dg-skip-if "" { *-*-* } { "-flto" } { "" } }
4
5
volatile int l;
6
7
namespace S
8
{
9
int i = 24;
10
void __attribute__((noinline))
11
f()
12
{
13
int i = 42;
14
l = i; // { dg-final { gdb-test 14 "i" "42" } }
15
{
16
extern int i;
17
l = i; // { dg-final { gdb-test 17 "i" "24" } }
18
}
19
}
20
}
21
22
int
23
main (void)
24
{
25
S::f ();
26
return 0;
27
}