summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor
diff options
context:
space:
mode:
authorYunzhong Gao <Yunzhong_Gao@playstation.sony.com>2015-08-01 02:55:59 +0000
committerYunzhong Gao <Yunzhong_Gao@playstation.sony.com>2015-08-01 02:55:59 +0000
commit7704ba7f97b35bb465384248a204e549f3c18263 (patch)
treecb99c78f1d172bbf8f3ef3718498cac05a1f344d /clang/test/Preprocessor
parent86a5fba71d5b5503591f28a6817f8808c756bdc4 (diff)
downloadbcm5719-llvm-7704ba7f97b35bb465384248a204e549f3c18263.tar.gz
bcm5719-llvm-7704ba7f97b35bb465384248a204e549f3c18263.zip
[Tests] Add explicit -std=lang option to a number of tests.
This patch should not change the test results, but it is useful if clang's default C++ language is ever changed from gnu++98. Patch by: Charles Li http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20150727/134667.html llvm-svn: 243819
Diffstat (limited to 'clang/test/Preprocessor')
-rw-r--r--clang/test/Preprocessor/macro-reserved-cxx11.cpp1
-rw-r--r--clang/test/Preprocessor/macro-reserved.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/macro-reserved-cxx11.cpp b/clang/test/Preprocessor/macro-reserved-cxx11.cpp
index a740ff61295..6daea953e8a 100644
--- a/clang/test/Preprocessor/macro-reserved-cxx11.cpp
+++ b/clang/test/Preprocessor/macro-reserved-cxx11.cpp
@@ -1,4 +1,5 @@
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -pedantic -verify %s
+// RUN: %clang_cc1 -fsyntax-only -std=c++14 -pedantic -verify %s
#define for 0 // expected-warning {{keyword is hidden by macro definition}}
#define final 1 // expected-warning {{keyword is hidden by macro definition}}
diff --git a/clang/test/Preprocessor/macro-reserved.cpp b/clang/test/Preprocessor/macro-reserved.cpp
index ba1594a0af4..d1f70317f7a 100644
--- a/clang/test/Preprocessor/macro-reserved.cpp
+++ b/clang/test/Preprocessor/macro-reserved.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
+// RUN: %clang_cc1 -fsyntax-only -verify -pedantic -std=c++98 %s
#define for 0 // expected-warning {{keyword is hidden by macro definition}}
#define final 1
OpenPOWER on IntegriCloud