Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Driver/cl-idl.cpp @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
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. | |
3 | |
4 // Test that 'clang-cl /E' treats inputs as C++ if the extension is | |
5 // unrecognized. midl relies on this. See PR40140. | |
6 | |
7 // Use a plain .cpp extension first. | |
8 // RUN: %clang_cl /E -- %s | FileCheck %s | |
9 | |
10 // Copy to use .idl as the extension. | |
11 // RUN: cp %s %t.idl | |
12 // RUN: %clang_cl /E -- %t.idl | FileCheck %s | |
13 | |
14 #ifdef __cplusplus | |
15 struct IsCPlusPlus {}; | |
16 #endif | |
17 | |
18 // CHECK: struct IsCPlusPlus {}; |