blob: 8004ab0f8c810653d2449064bab855c066670443 [file] [log] [blame]
// PR c++/60955
// { dg-options "-Wextra" }
unsigned int erroneous_warning(register int a) { // { dg-warning "ISO C\\+\\+17 does not allow 'register' storage class specifier" "" { target c++17 } }
if ((a) & 0xff) return 1; else return 0;
}
unsigned int no_erroneous_warning(register int a) { // { dg-warning "ISO C\\+\\+17 does not allow 'register' storage class specifier" "" { target c++17 } }
if (a & 0xff) return 1; else return 0;
}