repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
static34.C
blob
122fffafbcb569971cb45ec01731eb7a550a59a9
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
}