[gcn] install.texi: Update for new ISA targets and their requirements
[gcc.git] / gcc / testsuite / g++.dg / cpp23 / Winvalid-utf8-12.C
bloba09d920e9c6a61ec9336bc00ad40fe75ce601487
1 // P2295R6 - Support for UTF-8 as a portable source file encoding
2 // This test intentionally contains various byte sequences which are not valid UTF-8
3 // { dg-do preprocess }
4 // { dg-options "-finput-charset=UTF-8 -pedantic-errors -Wno-invalid-utf8" }
6 #define I(x)
7 I(€߿ࠀ퟿𐀀􏿿)      // { dg-bogus "invalid UTF-8 character" }
8                                 // { dg-error "is not valid in an identifier" "" { target *-*-* } .-1 }
9 I(€)                            // { dg-bogus "invalid UTF-8 character '<80>" }
10 I(¿)                            // { dg-bogus "invalid UTF-8 character '<bf>'" }
11 I(À)                            // { dg-bogus "invalid UTF-8 character '<c0>'" }
12 I(Á)                            // { dg-bogus "invalid UTF-8 character '<c1>'" }
13 I(õ)                            // { dg-bogus "invalid UTF-8 character '<f5>'" }
14 I(ÿ)                            // { dg-bogus "invalid UTF-8 character '<ff>'" }
15 I(Â)                            // { dg-bogus "invalid UTF-8 character '<c2>'" }
16 I(à)                            // { dg-bogus "invalid UTF-8 character '<e0>'" }
17 I(à€¿)                          // { dg-bogus "invalid UTF-8 character '<e0><80><bf>'" }
18 I(àŸ€)                          // { dg-bogus "invalid UTF-8 character '<e0><9f><80>'" }
19 I(à¿)                           // { dg-bogus "invalid UTF-8 character '<e0><bf>'" }
20 I(ì€)                           // { dg-bogus "invalid UTF-8 character '<ec><80>'" }
21 I()                            // { dg-bogus "invalid UTF-8 character '<ed><a0><80>'" }
22 I(ð€€€)                         // { dg-bogus "invalid UTF-8 character '<f0><80><80><80>'" }
23 I(ð�¿¿)                         // { dg-bogus "invalid UTF-8 character '<f0><8f><bf><bf>'" }
24 I()                            // { dg-error "is not valid in an identifier" }
25 I()                    // { dg-error "is not valid in an identifier" }