Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/ctor2.C

raw
1 // { dg-do assemble }
2 // Bug: the reference to c in the initializer list doesn't get fixed up.
3
4 struct AP {
5 AP(unsigned char);
6 };
7
8 struct AI : AP {
9 AI(unsigned char);
10 };
11
12 AI::AI(unsigned char c)
13 : AP(c)
14 {
15 &c;
16 }