aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/t13.C
blob: f2c5180d43d54dccabe07282657b8456ba4dee39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }

template <class A> class B {
public:
  B();
  A a;
  int i;
};

void *f () {
  return new B<char *>;
}

struct foo { int i[10]; };
extern B<foo> *foop;

void f2 () {
  foop = new B<foo>;
}