aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/udlit-nonempty-str-neg.C
blob: ddaa1aa6c3e24e0b86b944bcda16a60c1cf50c1d (plain)
1
2
3
4
5
6
// { dg-do compile { target c++11 } }

// Test user-defined literals.
// Test error on non-empty string after 'operator' keyword.

double operator"hi" _badword(long double); // { dg-error "expected empty string after" }