PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / diagnostic / string-literal-concat.C
blob4ede799da8d15e2066df80449f116e0e89c1b7f4
1 /* { dg-options "-fdiagnostics-show-caret -std=c++11" } */
3 const void *s = u8"a"  u"b";  // { dg-error "24: non-standard concatenation" }
4 /* { dg-begin-multiline-output "" }
5  const void *s = u8"a"  u"b";
6                  ~~~~~  ^~~~
7    { dg-end-multiline-output "" } */
9 const void *s2 = u"a"  u"b"  u8"c";  // { dg-error "30: non-standard concatenation" }
10 /* { dg-begin-multiline-output "" }
11  const void *s2 = u"a"  u"b"  u8"c";
12                         ~~~~  ^~~~~
13   { dg-end-multiline-output "" } */
15 #define TEST_U8_LITERAL u8"a"
17 const void *s3 = TEST_U8_LITERAL u8"b";
19 const void *s4 = TEST_U8_LITERAL u"b"; // { dg-error "34: non-standard concatenation" }
20 /* { dg-begin-multiline-output "" }
21  const void *s4 = TEST_U8_LITERAL u"b";
22                                   ^~~~
23   { dg-end-multiline-output "" } */