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.
12 // RUN: %clang_cl /E -- %t.idl | FileCheck %s
15 struct IsCPlusPlus
{};
18 // CHECK: struct IsCPlusPlus {};