Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/udlit-string-literal.C

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-require-effective-target stdint_types }
3 // { dg-skip-if "requires hosted libstdc++ for string in udlit-string-literal.h" { ! hostedlib } }
4 // PR c++/55582
5
6 #include "udlit-string-literal.h"
7
8 using namespace my_string_literals;
9
10 decltype("Hello, World!"s) s;
11 #if !__cpp_char8_t == !__cpp_lib_char8_t
12 decltype(u8"Hello, World!"s) s8;
13 #endif
14 decltype(L"Hello, World!"s) ws;
15 decltype(u"Hello, World!"s) s16;
16 decltype(U"Hello, World!"s) s32;