1 // P0001R1 - C++17 removal of register keyword
2 // { dg-do compile { target c++14_down } }
3 // { dg-options "-Wregister" }
5 #if defined(__i386__) || defined(__x86_64__)
11 register int a __asm (REG1); // { dg-bogus "'register' storage class specifier used" }
13 register int b; // { dg-warning "'register' storage class specifier used" }
14 register int c (); // { dg-error "storage class 'register' invalid for function" }
15 int foo (register int d) // { dg-warning "'register' storage class specifier used" }
22 register int e __asm (REG2); // { dg-bogus "'register' storage class specifier used" }
26 register int f; // { dg-warning "'register' storage class specifier used" }