summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/defaulted5.C
blob: b7bd16b4063cd1287dd5038e1fc116e3fa96c4d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/37234
// { dg-do link }
// { dg-options "-std=c++0x" }

template <typename T>
class foo {
  public:
    foo() =default;
    ~foo();
};

template <typename T>
foo<T>::~foo() =default;

int main() {

    foo<int> fi;

    return 0;
}