1 // { dg-do assemble } 2 // { dg-xfail-if "" { sparc64-*-elf arm-*-pe } } 3 // { dg-options "-fexceptions" } 4 // prms-id: 10416 5 6 class not_ok { 7 public: f()8 void f() 9 #if __cplusplus <= 201402L 10 throw(int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } 11 #endif 12 { } 13 }; 14