1// { dg-do compile { target c++11 } }
2
3template<typename> struct foo // { dg-message "note" }
4{ // { dg-error "incomplete type" }
5    static_assert(noexcept(((foo *)1)->~foo()), "");
6};
7
8template class foo<int>;
9
10