aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/Inputs/c-header-bad.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/Inputs/c-header-bad.h')
-rw-r--r--test/Modules/Inputs/c-header-bad.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Modules/Inputs/c-header-bad.h b/test/Modules/Inputs/c-header-bad.h
new file mode 100644
index 000000000000..7f7cd8701ee0
--- /dev/null
+++ b/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 '}'}}