blob: 642e024084927a7dd7ac4cfbbf969bbd2cccb33a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// { dg-options "-O2" }
void a (void (*f)())
{
f();
}
struct RunState
{
static void runcallback() { }
static void wait()
{
a (runcallback);
}
};
int main()
{
RunState::wait();
return 0;
}
|