gcc/testsuite/g++.dg/cpp0x/Wliteral-suffix2.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | // { dg-options "-Wno-literal-suffix" } |
| 3 | |
| 4 | // Test user-defined literals. |
| 5 | // Test "-Wno-literal-suffix" suppresses warnings on declaration without |
| 6 | // leading underscore. |
| 7 | |
| 8 | long double operator"" nounder(long double); // { dg-bogus "reserved" } |
| 9 | // { dg-warning "space" "" { target c++23 } .-1 } |
| 10 | |
| 11 | template<char...> |
| 12 | int operator ""nounder(); // { dg-bogus "reserved" } |