PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / rtti / crash3.C
blob804aa326d971b1e10150236eab072dd1ebe80cf4
1 // PR c++/23947
2 // { dg-do compile }
4 class A {};
5 class B {};
6 class C : public A, public B {};
7 class D : public C {};
8 void f ()
9 #if __cplusplus <= 201402L
10 throw (D)                       // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
11 #endif