summaryrefslogtreecommitdiff
path: root/clang/test/Modules/on-demand-build-warnings.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/on-demand-build-warnings.m')
-rw-r--r--clang/test/Modules/on-demand-build-warnings.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Modules/on-demand-build-warnings.m b/clang/test/Modules/on-demand-build-warnings.m
new file mode 100644
index 0000000..24975c0
--- /dev/null
+++ b/clang/test/Modules/on-demand-build-warnings.m
@@ -0,0 +1,5 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -fmodules -fno-objc-infer-related-result-type -Wmodule-build -fmodule-cache-path %t -F %S/Inputs -verify %s
+
+@__experimental_modules_import Module; // expected-warning{{building module 'Module' from source}}
+