c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / Wbidi-chars-17.c
blob341922146a711bdc9453f4c1af178869cd70b794
1 /* PR preprocessor/103026 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wbidi-chars=unpaired,ucn" } */
4 /* Test LTR/RTL chars. */
6 /* LTR<‎> */
7 /* { dg-bogus "unpaired" "" { target *-*-* } .-1 } */
8 // LTR<‎>
9 /* { dg-bogus "unpaired" "" { target *-*-* } .-1 } */
10 /* RTL<‏> */
11 /* { dg-bogus "unpaired" "" { target *-*-* } .-1 } */
12 // RTL<‏>
13 /* { dg-bogus "unpaired" "" { target *-*-* } .-1 } */
14 int ltr_\u200e;
15 /* { dg-error "universal character " "" { target *-*-* } .-1 } */
16 int rtl_\u200f;
17 /* { dg-error "universal character " "" { target *-*-* } .-1 } */
19 const char *s1 = "LTR<‎>";
20 /* { dg-bogus "unpaired" "" { target *-*-* } .-1 } */
21 const char *s2 = "LTR\u200e";
22 /* { dg-bogus "unpaired" "" { target *-*-* } .-1 } */
23 const char *s3 = "LTR\u200E";
24 /* { dg-bogus "unpaired" "" { target *-*-* } .-1 } */
25 const char *s4 = "RTL<‏>";
26 /* { dg-bogus "unpaired" "" { target *-*-* } .-1 } */
27 const char *s5 = "RTL\u200f";
28 /* { dg-bogus "unpaired" "" { target *-*-* } .-1 } */
29 const char *s6 = "RTL\u200F";
30 /* { dg-bogus "unpaired" "" { target *-*-* } .-1 } */