projects
/
platform
/
upstream
/
gcc48.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 4.8.1
[platform/upstream/gcc48.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
static34.C
1
// PR c++/52688
2
// { dg-do link }
3
4
template<class T>
5
struct A {
6
static bool test() {
7
static bool value = false;
8
if (value)
9
return false;
10
struct S {
11
S() { value = true; }
12
};
13
static S s;
14
return true;
15
}
16
};
17
18
int main()
19
{
20
A<int>::test();
21
}