gcc/testsuite/g++.dg/ext/bitint3.C
raw| 1 | // PR c/102989 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | constexpr int operator""wb (unsigned long long) { return 0; } // { dg-warning "reserved for future standardization" } |
| 5 | constexpr int operator""uwb (unsigned long long) { return 1; } // { dg-warning "reserved for future standardization" } |
| 6 | |
| 7 | static_assert (-42wb == 0, ""); |
| 8 | static_assert (81uwb == 1, ""); |