aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/diagnostic-input-utf8-bom.c
blob: 1a3f35287da725cafdfb7970bf56c3a72fb6e4a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
int 1;
/* { dg-do compile } */
/* { dg-options "-fdiagnostics-show-caret" } */

/* This file begins with a UTF-8 byte order mark.  Verify that diagnostics
   still point to the right place, since the stripping of the BOM happens twice,
   once when libcpp reads the file, and once when diagnostics infrastucture
   reads it.  */

/* { dg-error "expected .* before numeric constant" "" { target *-*-*} 1 } */
/* { dg-begin-multiline-output "" }
 int 1;
     ^
   { dg-end-multiline-output "" } */