summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/pr64100.C
blob: 493849f24cfeda3e45e203220492fe142cf73ed9 (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile { target c++11 } }

template<typename> struct foo // { dg-message "note" }
{ // { dg-error "incomplete type" }
    static_assert(noexcept(((foo *)1)->~foo()), "");
}; 

template class foo<int>;