URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
693 |
jeremybenn |
// { dg-options "-std=c++0x" }
|
2 |
|
|
|
3 |
|
|
// Check that undeclared literal operator calls and literals give appropriate errors.
|
4 |
|
|
|
5 |
|
|
int i = operator"" _Bar('x'); // { dg-error "was not declared in this scope" }
|
6 |
|
|
int j = 'x'_Bar; // { dg-error "unable to find character literal operator|with|argument" }
|
7 |
|
|
|
8 |
|
|
int ii = operator"" _BarCharStr("Howdy, Pardner!"); // { dg-error "was not declared in this scope" }
|
9 |
|
|
int jj = "Howdy, Pardner!"_BarCharStr; // { dg-error "unable to find string literal operator|Possible missing length argument" }
|
10 |
|
|
|
11 |
|
|
unsigned long long iULL = operator"" _BarULL(666ULL); // { dg-error "was not declared in this scope" }
|
12 |
|
|
unsigned long long jULL = 666_BarULL; // { dg-error "unable to find numeric literal operator" }
|
13 |
|
|
|
14 |
|
|
long double iLD = operator"" _BarLD(666.0L); // { dg-error "was not declared in this scope" }
|
15 |
|
|
long double jLD = 666.0_BarLD; // { dg-error "unable to find numeric literal operator" }
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.