summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c11-uni-string-2.c
blob: 583c38a87e2955ed47f2cbe3e1f4f703db197367 (plain)
1
2
3
4
5
6
7
8
/* Test Unicode strings in C11.  Test constraint.  */
/* { dg-do compile } */
/* { dg-options "-std=c11 -pedantic-errors" } */

const void *p1 = L"a" u8"b"; /* { dg-error "concatenation" } */
const void *p2 = L"a" "b" u8"c"; /* { dg-error "concatenation" } */
const void *p3 = u8"a" L"b"; /* { dg-error "concatenation" } */
const void *p4 = u8"a" "b" L"c"; /* { dg-error "concatenation" } */