summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-02-07 01:18:48 +0000
committerDouglas Gregor <dgregor@apple.com>2013-02-07 01:18:48 +0000
commit2236c20f5a5a5ae4dda7cf6bcf51f3644a221915 (patch)
tree5724368f3b3cda7c6d77e65358b114fb86cc5c18 /clang/test/Modules
parent1ef75e55b9402e1ac5e105fc0299a01eba09304b (diff)
downloadbcm5719-llvm-2236c20f5a5a5ae4dda7cf6bcf51f3644a221915.tar.gz
bcm5719-llvm-2236c20f5a5a5ae4dda7cf6bcf51f3644a221915.zip
Be a little more permissive with -fmodules-ignore-macro= by removing everything after the second '=' if it is there.
llvm-svn: 174567
Diffstat (limited to 'clang/test/Modules')
-rw-r--r--clang/test/Modules/ignored_macros.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Modules/ignored_macros.m b/clang/test/Modules/ignored_macros.m
index 3d5f359b317..1bff8fd576e 100644
--- a/clang/test/Modules/ignored_macros.m
+++ b/clang/test/Modules/ignored_macros.m
@@ -26,6 +26,13 @@
// RUN: %clang_cc1 -fmodule-cache-path %t.modules -DIGNORED=1 -fmodules-ignore-macro=IGNORED -fmodules -I %S/Inputs -emit-pch -o %t.pch -x objective-c-header %s -verify
// RUN: %clang_cc1 -fmodule-cache-path %t.modules -DIGNORED=1 -fmodules -I %S/Inputs -include-pch %t.pch -fmodules-ignore-macro=IGNORED -DNO_IGNORED_ANYWHERE -fmodules-ignore-macro=NO_IGNORED_ANYWHERE %s -verify
+// Fifth trial: pass -DIGNORED=1 and -fmodules-ignore-macro=IGNORED=1
+// to both invocations, so modules will be built without the IGNORED
+// macro.
+// RUN: rm -rf %t.modules
+// RUN: %clang_cc1 -fmodule-cache-path %t.modules -DIGNORED=1 -fmodules-ignore-macro=IGNORED=1 -fmodules -I %S/Inputs -emit-pch -o %t.pch -x objective-c-header %s -verify
+// RUN: %clang_cc1 -fmodule-cache-path %t.modules -DIGNORED=1 -fmodules -I %S/Inputs -include-pch %t.pch -fmodules-ignore-macro=IGNORED=1 -DNO_IGNORED_ANYWHERE -fmodules-ignore-macro=NO_IGNORED_ANYWHERE %s -verify
+
// expected-no-diagnostics
#ifndef HEADER
OpenPOWER on IntegriCloud