gcc/testsuite/g++.dg/cpp0x/udlit-nounder-neg.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | |
| 3 | // Test user-defined literals. |
| 4 | // Test warning on declaration without leading underscore. |
| 5 | |
| 6 | long double operator ""nounder(long double); // { dg-warning "literal operator suffixes not preceded by|are reserved for future standardization" } |
| 7 | |
| 8 | template<char...> |
| 9 | int operator ""nounder(); // { dg-warning "literal operator suffixes not preceded by|are reserved for future standardization" } |