Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / c-c++-common / Wbidi-chars-24.c
blob608a5d6a1da2dbea372d434d7efd3ddcf52f4206
1 /* PR preprocessor/103026 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wbidi-chars=ucn,unpaired" } */
4 /* Test nesting of bidi chars in various contexts. */
6 void
7 g1 ()
9 const char *s1 = "a b c LRE\u{202a} 1 2 3 PDI\u{00000000000000000000000002069} x y z";
10 /* { dg-warning "unpaired" "" { target *-*-* } .-1 } */
11 const char *s2 = "a b c RLE\u{00202b} 1 2 3 PDI\u{2069} x y z";
12 /* { dg-warning "unpaired" "" { target *-*-* } .-1 } */
13 const char *s3 = "a b c LRO\u{000000202d} 1 2 3 PDI\u{02069} x y z";
14 /* { dg-warning "unpaired" "" { target *-*-* } .-1 } */
15 const char *s4 = "a b c RLO\u{202e} 1 2 3 PDI\u{00000002069} x y z";
16 /* { dg-warning "unpaired" "" { target *-*-* } .-1 } */
17 const char *s5 = "a b c LRI\u{002066} 1 2 3 PDF\u{202C} x y z";
18 /* { dg-warning "unpaired" "" { target *-*-* } .-1 } */
19 const char *s6 = "a b c RLI\u{02067} 1 2 3 PDF\u{202c} x y z";
20 /* { dg-warning "unpaired" "" { target *-*-* } .-1 } */
21 const char *s7 = "a b c FSI\u{0002068} 1 2 3 PDF\u{0202c} x y z";
22 /* { dg-warning "unpaired" "" { target *-*-* } .-1 } */
25 int A\u{202a}B\u{2069}C;
26 /* { dg-warning "unpaired" "" { target *-*-* } .-1 } */
27 int a\u{00000202b}B\u{000000002069}c;
28 /* { dg-warning "unpaired" "" { target *-*-* } .-1 } */