| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } } |
| 3 |
|
| 4 |
#include <string> |
| 5 |
|
| 6 |
std::string operator ""_www(const char*, size_t); |
| 7 |
|
| 8 |
std::string concat01 = "Hello, " "World!"_www; |
| 9 |
|
| 10 |
std::string concat10 = "Hello, "_www "World!"; |
| 11 |
|
| 12 |
std::string concat11 = "Hello, "_www "World!"_www; |
| 13 |
|
| 14 |
|
| 15 |
class Tachyon { }; |
| 16 |
|
| 17 |
Tachyon operator ""_fast(const char*, size_t); |
| 18 |
|
| 19 |
int operator ""_fast(const char32_t*, size_t); |
| 20 |
|
| 21 |
int speedy01 = "Hello, " U"World!"_fast; |
| 22 |
|
| 23 |
int speedy10 = "Hello, "_fast U"World!"; |
| 24 |
|
| 25 |
int speedy11 = "Hello, "_fast U"World!"_fast; |