1 /* { dg-do compile } */
2 /* { dg-require-iconv "CP850" } */
3 /* { dg-options "-finput-charset=CP850 -fdiagnostics-show-caret" } */
5 /* Test that diagnostics are converted to UTF-8; this file is encoded in
6 CP850. Why CP850? -finput-charset only supports encodings that are a
7 superset of ASCII. But encodings that look like latin-1 are automatically
8 converted by expect to UTF-8, and hence by the time dg sees them, it can't
9 verify they were actually output in UTF-8. So codepage 850 was chosen as one
10 that is hopefully available and meets the requirements of matching ASCII and
11 not matching latin-1. */
12 const char *section
= "õ"
13 /* { dg-error "expected .* at end of input" "" { target *-*-*} .-1 } */
14 /* { dg-begin-multiline-output "" }
15 const char *section = "§"
17 { dg-end-multiline-output "" } */