diff options
author | Daniel Jasper <djasper@google.com> | 2015-02-19 09:56:13 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-02-19 09:56:13 +0000 |
commit | 22a3e79aaf094d203dcb30d3a37fea0fb50e12f1 (patch) | |
tree | aab610fc9a5db356e29314a5bb6e0cad824ec130 /clang/test/Modules/declare-use-compatible.cpp | |
parent | 88077324c6f138b0fbbabdb3b469dc3d6a16c263 (diff) | |
download | bcm5719-llvm-22a3e79aaf094d203dcb30d3a37fea0fb50e12f1.tar.gz bcm5719-llvm-22a3e79aaf094d203dcb30d3a37fea0fb50e12f1.zip |
Make -fmodules-decluse and -fmodules-strict-decluse compatible options.
They don't actually influence the result of the module compilation.
llvm-svn: 229834
Diffstat (limited to 'clang/test/Modules/declare-use-compatible.cpp')
-rw-r--r-- | clang/test/Modules/declare-use-compatible.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/clang/test/Modules/declare-use-compatible.cpp b/clang/test/Modules/declare-use-compatible.cpp new file mode 100644 index 00000000000..4c3d79bd71c --- /dev/null +++ b/clang/test/Modules/declare-use-compatible.cpp @@ -0,0 +1,36 @@ +// Used module not built with -decluse. +// RUN: rm -rf %t +// RUN: %clang_cc1 -x c++ -fmodules -fmodule-name=XB -emit-module \ +// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.map -o %t/b.pcm +// RUN: %clang_cc1 -x c++ -fmodules -fmodules-cache-path=%t \ +// RUN: -fmodules-decluse \ +// RUN: -fmodule-file=%t/b.pcm -fmodule-name=XE -I %S/Inputs/declare-use %s +// +// Main module not built with -decluse. +// RUN: rm -rf %t +// RUN: %clang_cc1 -x c++ -fmodules -fmodule-name=XB -emit-module \ +// RUN: -fmodules-decluse \ +// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.map -o %t/b.pcm +// RUN: %clang_cc1 -x c++ -fmodules -fmodules-cache-path=%t \ +// RUN: -fmodule-file=%t/b.pcm -fmodule-name=XE -I %S/Inputs/declare-use %s +// +// Used module not built with -decluse. +// RUN: rm -rf %t +// RUN: %clang_cc1 -x c++ -fmodules -fmodule-name=XB -emit-module \ +// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.map -o %t/b.pcm +// RUN: %clang_cc1 -x c++ -fmodules -fmodules-cache-path=%t \ +// RUN: -fmodules-strict-decluse \ +// RUN: -fmodule-file=%t/b.pcm -fmodule-name=XE -I %S/Inputs/declare-use %s +// +// Main module not built with -decluse. +// RUN: rm -rf %t +// RUN: %clang_cc1 -x c++ -fmodules -fmodule-name=XB -emit-module \ +// RUN: -fmodules-strict-decluse \ +// RUN: -I %S/Inputs/declare-use %S/Inputs/declare-use/module.map -o %t/b.pcm +// RUN: %clang_cc1 -x c++ -fmodules -fmodules-cache-path=%t \ +// RUN: -fmodule-file=%t/b.pcm -fmodule-name=XE -I %S/Inputs/declare-use %s + +#include "b.h" + +const int g = b; + |