aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/Wbidi-chars-11.c
blob: ea83029d6b99718c7851d4ba2cb0178ef7fb9b40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR preprocessor/103026 */
/* { dg-do compile } */
/* { dg-options "-Wbidi-chars=unpaired,ucn" } */
/* Test that we warn when mixing UCN and UTF-8.  */

int LRE_‪_PDF_\u202c;
/* { dg-warning "mismatch" "" { target *-*-* } .-1 } */
int LRE_\u202a_PDF_‬_;
/* { dg-warning "mismatch" "" { target *-*-* } .-1 } */
const char *s1 = "LRE_‪_PDF_\u202c";
/* { dg-warning "mismatch" "" { target *-*-* } .-1 } */
const char *s2 = "LRE_\u202a_PDF_‬";
/* { dg-warning "mismatch" "" { target *-*-* } .-1 } */