diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-02 05:58:18 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-03-02 05:58:18 +0000 |
| commit | 779448684662c1fb97d2daec6fbf769ca2515a6d (patch) | |
| tree | b19ea3bc584c37388126eadd15a21df44df4a1f6 /clang/test/Modules/Inputs/c-header-bad.h | |
| parent | 293a81c406a4cbc94f03a9989166534064c701e7 (diff) | |
| download | bcm5719-llvm-779448684662c1fb97d2daec6fbf769ca2515a6d.tar.gz bcm5719-llvm-779448684662c1fb97d2daec6fbf769ca2515a6d.zip | |
Add [extern_c] attribute for modules, allowing a C module to be imported within an extern "C" block in C++ code.
llvm-svn: 202615
Diffstat (limited to 'clang/test/Modules/Inputs/c-header-bad.h')
| -rw-r--r-- | clang/test/Modules/Inputs/c-header-bad.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/c-header-bad.h b/clang/test/Modules/Inputs/c-header-bad.h new file mode 100644 index 00000000000..7f7cd8701ee --- /dev/null +++ b/clang/test/Modules/Inputs/c-header-bad.h @@ -0,0 +1,4 @@ +} // expected-error {{extraneous closing brace ('}')}} +int not_in_extern_c; +extern "C" { // expected-note {{to match this '{'}} +// expected-error {{expected '}'}} |

