1 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } 2 class E { }; 3 4 class T { 5 int foo(bool a) 6 #if __cplusplus <= 201402L 7 throw (E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } } 8 #endif 9 __attribute__((regparm(1))); 10 int bar(bool b) __attribute__((regparm(1))); 11 }; 12 bar(bool b)13int T::bar(bool b) 14 { 15 return (b ? 1 : 2); 16 } 17 18