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