2 // { dg-options "-Wextra" }
4 unsigned int erroneous_warning(register int a) { // { dg-warning "ISO C\\+\\+17 does not allow 'register' storage class specifier" "" { target c++17 } }
5 if ((a) & 0xff) return 1; else return 0;
7 unsigned int no_erroneous_warning(register int a) { // { dg-warning "ISO C\\+\\+17 does not allow 'register' storage class specifier" "" { target c++17 } }
8 if (a & 0xff) return 1; else return 0;