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