Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / udlit-string-literal.C
blob78e2b26d3bb85e67b9ce777f318bc42bcfde3f4b
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
6 #include "udlit-string-literal.h"
8 using namespace my_string_literals;
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;