* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / static_assert4.C
blob9a747350974365f53c0ff248394cb0c6b3be831c
1 // { dg-do compile { target c++11 } }
2 // { dg-options "--param ggc-min-heapsize=0 --param ggc-min-expand=0 " }
3 // PR C++/30033
4 // Make sure that the static assert does not crash the GC.
6 template <class T>
7 struct default_delete
9   void
10   operator() (T * ptr) const
11   {
12     static_assert (sizeof (T) > 0, "Can't delete pointer to incomplete type");
13   }