blob: 5c399aff5990f3a56fbc6e23de3510ac52bb59c7 (
plain)
1
2
3
4
5
6
7
8
|
// { dg-options "-std=c++0x" }
// Make sure handing a string to a raw literal generates a sensible error message.
int operator"" _embedraw(const char*)
{ return 41; };
int k = "Boo!"_embedraw; // { dg-error "unable to find valid user-defined string literal operator" }
|