summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/dtor2.C
blob: 04bea9cb640cd0323a701fe4c00aef97f029b869 (plain)
1
2
3
4
5
6
7
8
9
10
struct Foo
{
    template <int i>
    ~Foo() {} // { dg-error "" }
};

int main()
{
   Foo f;
}