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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
static3.C
blob
8fac85fbc93a0488e509dabb78f4197b0374c7b7
1
// { dg-do run }
2
3
struct T
4
{
5
static void (*handler)();
6
static void func() {}
7
};
8
9
bool fail;
10
11
struct S {
12
S() {
13
if (T::handler != T::func)
14
fail = true;
15
}
16
};
17
18
static S s;
19
20
void (*T::handler)() = func;
21
22
int main()
23
{
24
if (fail)
25
return 1;
26
}