2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / eh / pr38662.C
blob4a554aa716b9c08a61b41f8ba4d31fa529feb624
1 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
2 class E { };
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)));
13 int T::bar(bool b)
15   return (b ? 1 : 2);