libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / diagnostic-input-utf8-bom.c
blob1a3f35287da725cafdfb7970bf56c3a72fb6e4a7
1 int 1;
2 /* { dg-do compile } */
3 /* { dg-options "-fdiagnostics-show-caret" } */
5 /* This file begins with a UTF-8 byte order mark. Verify that diagnostics
6 still point to the right place, since the stripping of the BOM happens twice,
7 once when libcpp reads the file, and once when diagnostics infrastucture
8 reads it. */
10 /* { dg-error "expected .* before numeric constant" "" { target *-*-*} 1 } */
11 /* { dg-begin-multiline-output "" }
12 int 1;
14 { dg-end-multiline-output "" } */