summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/repo1.C
blob: 342993eca144f878e3c4763420f12dd5cfb94bb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-options "-frepo" }
// { dg-require-host-local "" }
// { dg-skip-if "dkms are not final links" { vxworks_kernel } }

struct A {
  A();
};

A::A() {}

template <typename T>
struct B : public A {
  B() {} // { dg-bogus "" }
};

B<int> b;

int main () {}

// { dg-final { cleanup-repo-files } }