]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/c2x-concat-1.c
e92eaaf639eb479f637bba823de16b9427c3b677
1 /* Test errors for bad string literal concatenation. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c2x -pedantic-errors" } */
5 void *pLU
= L
"" U
""; /* { dg-error "non-standard concatenation" } */
6 void *pL_U
= L
"" "" U
""; /* { dg-error "non-standard concatenation" } */
7 void *pLu
= L
"" u
""; /* { dg-error "non-standard concatenation" } */
8 void *pL_u
= L
"" "" u
""; /* { dg-error "non-standard concatenation" } */
9 void *pLu8
= L
"" u8
""; /* { dg-error "non-standard concatenation" } */
10 void *pL_u8
= L
"" "" u8
""; /* { dg-error "non-standard concatenation" } */
12 void *pUL
= U
"" L
""; /* { dg-error "non-standard concatenation" } */
13 void *pU_L
= U
"" "" L
""; /* { dg-error "non-standard concatenation" } */
14 void *pUu
= U
"" u
""; /* { dg-error "non-standard concatenation" } */
15 void *pU_u
= U
"" "" u
""; /* { dg-error "non-standard concatenation" } */
16 void *pUu8
= U
"" u8
""; /* { dg-error "non-standard concatenation" } */
17 void *pU_u8
= U
"" "" u8
""; /* { dg-error "non-standard concatenation" } */
19 void *puL
= u
"" L
""; /* { dg-error "non-standard concatenation" } */
20 void *pu_L
= u
"" "" L
""; /* { dg-error "non-standard concatenation" } */
21 void *puU
= u
"" U
""; /* { dg-error "non-standard concatenation" } */
22 void *pu_U
= u
"" "" U
""; /* { dg-error "non-standard concatenation" } */
23 void *puu8
= u
"" u8
""; /* { dg-error "non-standard concatenation" } */
24 void *pu_u8
= u
"" "" u8
""; /* { dg-error "non-standard concatenation" } */
26 void *pu8L
= u8
"" L
""; /* { dg-error "non-standard concatenation" } */
27 void *pu8_L
= u8
"" "" L
""; /* { dg-error "non-standard concatenation" } */
28 void *pu8U
= u8
"" U
""; /* { dg-error "non-standard concatenation" } */
29 void *pu8_U
= u8
"" "" U
""; /* { dg-error "non-standard concatenation" } */
30 void *pu8u
= u8
"" u
""; /* { dg-error "non-standard concatenation" } */
31 void *pu8_u
= u8
"" "" u
""; /* { dg-error "non-standard concatenation" } */