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
Fix all tests that fail with -sanitize=return.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tree-ssa
/
pr35144.C
blob
f0bb7bb6363b68534639d7612222d2ea267d3d0e
1
// PR c++/35144
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
5
struct A
6
{
7
int baz ();
8
};
9
10
typedef int (A::*P) ();
11
12
struct B
13
{
14
B ();
15
int foo (P x, int y = 0);
16
};
17
18
struct C
19
{
20
typedef int (B::*Q) (P, int);
21
void bar (Q x) { c = x; }
22
Q c;
23
};
24
25
extern C c;
26
27
B::B ()
28
{
29
c.bar ((C::Q) &B::foo);
30
}