| commit | 779448684662c1fb97d2daec6fbf769ca2515a6d | [log] [tgz] |
|---|---|---|
| author | Richard Smith <richard-llvm@metafoo.co.uk> | Sun Mar 02 05:58:18 2014 +0000 |
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | Sun Mar 02 05:58:18 2014 +0000 |
| tree | b19ea3bc584c37388126eadd15a21df44df4a1f6 | |
| parent | 293a81c406a4cbc94f03a9989166534064c701e7 [diff] [blame] |
Add [extern_c] attribute for modules, allowing a C module to be imported within an extern "C" block in C++ code. llvm-svn: 202615
diff --git a/clang/test/Modules/extern_c_bad.cpp b/clang/test/Modules/extern_c_bad.cpp new file mode 100644 index 0000000..bafdc04 --- /dev/null +++ b/clang/test/Modules/extern_c_bad.cpp
@@ -0,0 +1,2 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -verify -fmodules -x c++ -emit-module -fmodules-cache-path=%t -fmodule-name=c_library_bad %S/Inputs/module.map