Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Driver / cl-idl.cpp
blob7843ab31334ab7405e32955a3ad07e36e290ac50
1 // Note: %s must be preceded by --, otherwise it may be interpreted as a
2 // command-line option, e.g. on Mac where %s is commonly under /Users.
4 // Test that 'clang-cl /E' treats inputs as C++ if the extension is
5 // unrecognized. midl relies on this. See PR40140.
7 // Use a plain .cpp extension first.
8 // RUN: %clang_cl /E -- %s | FileCheck %s
10 // Copy to use .idl as the extension.
11 // RUN: cp %s %t.idl
12 // RUN: %clang_cl /E -- %t.idl | FileCheck %s
14 #ifdef __cplusplus
15 struct IsCPlusPlus {};
16 #endif
18 // CHECK: struct IsCPlusPlus {};