* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / udlit-declare-neg.C
blob721f87d4e66ec63e60959ee9768bd3a440ee4c85
1 // { dg-do compile { target c++11 } }
3 //  Check that undeclared literal operator calls and literals give appropriate errors.
5 int i = operator"" _Bar('x');  // { dg-error "9:'operator\"\"_Bar' was not declared in this scope" }
6 int j = 'x'_Bar;  // { dg-error "unable to find character literal operator|with|argument" }
8 int ii = operator"" _BarCharStr("Howdy, Pardner!");  // { dg-error "10:'operator\"\"_BarCharStr' was not declared in this scope" }
9 int jj = "Howdy, Pardner!"_BarCharStr;  // { dg-error "unable to find string literal operator|Possible missing length argument" }
11 unsigned long long iULL = operator"" _BarULL(666ULL);  // { dg-error "27:'operator\"\"_BarULL' was not declared in this scope" }
12 unsigned long long jULL = 666_BarULL;  // { dg-error "unable to find numeric literal operator" }
14 long double iLD = operator"" _BarLD(666.0L);  // { dg-error "19:'operator\"\"_BarLD' was not declared in this scope" }
15 long double jLD = 666.0_BarLD;  // { dg-error "unable to find numeric literal operator" }