llvm-project/clang/test/Lexer/minimize_source_to_dependen...

11 lines
375 B
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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