summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/defaulted27.C
blob: 7d9139d23734f202dfa94787158a4337a65990d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/47544
// { dg-options -std=c++0x }
// { dg-final { scan-assembler "_ZN1sIiEC2Ev" } }
// { dg-final { scan-assembler-not "_ZN1sIiED2Ev" } }

template <typename T>
struct s {
  s();
  ~s() = default;
};

extern template struct s<int>;

template <typename T>
s<T>::s() = default;

template struct s<int>;

s<int> a;