summaryrefslogtreecommitdiff
path: root/clang/test/Modules/requires.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/requires.m')
-rw-r--r--clang/test/Modules/requires.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Modules/requires.m b/clang/test/Modules/requires.m
new file mode 100644
index 0000000..ce2537c
--- /dev/null
+++ b/clang/test/Modules/requires.m
@@ -0,0 +1,5 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -Wauto-import -fmodule-cache-path %t -fmodules -F %S/Inputs %s -verify
+
+@__experimental_modules_import DependsOnModule.CXX; // expected-error{{module 'DependsOnModule.CXX' requires feature 'cplusplus'}}
+