diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/cpp0x/udlit-nounder-neg.C')
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/cpp0x/udlit-nounder-neg.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/udlit-nounder-neg.C b/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/udlit-nounder-neg.C new file mode 100644 index 0000000..9120ae4 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/udlit-nounder-neg.C @@ -0,0 +1,9 @@ +// { dg-do compile { target c++11 } } + +// Test user-defined literals. +// Test warning on declaration without leading underscore. + +long double operator"" nounder(long double); // { dg-warning "literal operator suffixes not preceded by|are reserved for future standardization" } + +template<char...> + int operator"" nounder(); // { dg-warning "literal operator suffixes not preceded by|are reserved for future standardization" } |