aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p8786.C
blob: 0565fb2558a129f40cd79aa6441356fb3cbc83ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Build don't link:
// Special g++ Options: -O
// prms-id: 8786

class B {
public:
  ~B();
};

class D : public B {
public:
  D(int);
};

int foo() {
  D t(0);

  bool h = 1;
  if (h) {
    D p(0);
    return 0;
  }
  return 0;
}