summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/modularize/ProblemsExternC.modularize
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/test/modularize/ProblemsExternC.modularize')
-rw-r--r--clang-tools-extra/test/modularize/ProblemsExternC.modularize12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang-tools-extra/test/modularize/ProblemsExternC.modularize b/clang-tools-extra/test/modularize/ProblemsExternC.modularize
new file mode 100644
index 00000000000..e16dcfdb62d
--- /dev/null
+++ b/clang-tools-extra/test/modularize/ProblemsExternC.modularize
@@ -0,0 +1,12 @@
+# RUN: not modularize %s -x c++ 2>&1 | FileCheck %s
+
+Inputs/IncludeInExtern.h
+
+# CHECK: {{.*}}{{[/\\]}}Inputs{{[/\\]}}IncludeInExtern.h:2:3
+# CHECK-NEXT: #include "Empty.h"
+# CHECK-NEXT: ^
+# CHECK-NEXT: error: Include directive within extern "C" {}.
+# CHECK-NEXT: {{.*}}{{[/\\]}}Inputs{{[/\\]}}IncludeInExtern.h:1:1
+# CHECK-NEXT: extern "C" {
+# CHECK-NEXT: ^
+# CHECK-NEXT: The "extern "C" {}" block is here.
OpenPOWER on IntegriCloud