aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/ctor2.C
blob: bf37c114be17ee1f30e2d89205f6a49dcc386540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Bug: the reference to c in the initializer list doesn't get fixed up.
// Build don't link:

struct AP {
    AP(unsigned char);
};

struct AI : AP {
    AI(unsigned char);
};

AI::AI(unsigned char c)
: AP(c)
{
  &c;
}