Use move-aware auto_vec in map
[official-gcc.git] / gcc / testsuite / g++.dg / eh / spec6.C
blobd08bd865a9ba5e003ed05f3b36287564198da538
1 // Test that we don't allow incomplete types in an exception-specification
2 // for a definition, or at a call site.
4 // { dg-do compile { target c++14_down } }
5 // { dg-options "-fpermissive -w" }
7 struct A;                       // { dg-message "" }
9 struct B
11   void f () throw (A);
14 void B::f () throw (A) {}       // { dg-error "A" }
16 int main ()
18   B b;
19   b.f();                        // { dg-error "A" }