1 // Test UTF8 BOM at start of file
2 // RUN: printf '\xef\xbb\xbf' > %t.c
3 // RUN: echo '#ifdef TEST\n' >> %t.c
4 // RUN: echo '#include <string>' >> %t.c
5 // RUN: echo '#endif' >> %t.c
6 // RUN: %clang_cc1 -DTEST -print-dependency-directives-minimized-source %t.c 2>&1 | FileCheck %s
7 
8 // CHECK:      #ifdef TEST
9 // CHECK-NEXT: #include <string>
10 // CHECK-NEXT: #endif
11