repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
abi
/
mangle2.C
blob
e8b5f409d7c7937d70a5a0f4b9a97eb686d2904a
1
// Test that we handle mangling of statics in inlines properly.
2
// { dg-options -fno-weak }
3
// { dg-do run }
4
5
inline int f ()
6
{
7
static int nested;
8
nested = 24;
9
{
10
static int nested;
11
nested = 42;
12
}
13
return (nested != 24);
14
}
15
16
int main()
17
{
18
return f ();
19
}