[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Lexer / minimize_source_to_dependency_directives_utf8bom.c
blob305442fbd28c467243ff80a1a6fbeb2ec80795f1
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
8 // CHECK: #ifdef TEST
9 // CHECK-NEXT: #include <string>
10 // CHECK-NEXT: #endif