summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2018-10-03 22:48:00 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2018-10-03 22:48:00 +0000
commit31f81399bd4cda72164dbda9631dbfb2e8f3c11d (patch)
tree67dd9be05dea8ca29a79b0d1b172ef112f855c5f
parent0550dac3ed5fb7babd96ef037b11e3ebd69b4943 (diff)
downloadbcm5719-llvm-31f81399bd4cda72164dbda9631dbfb2e8f3c11d.tar.gz
bcm5719-llvm-31f81399bd4cda72164dbda9631dbfb2e8f3c11d.zip
[analyzer] [tests] [quickfix] Make more test more resilient for non-defaut -std.
It is important to specify the version of the standard because tests should test the same thing regardless of the current default version of the standard. llvm-svn: 343736
-rw-r--r--clang/test/Analysis/casts.cpp2
-rw-r--r--clang/test/Analysis/diagnostics/no-store-func-path-notes.cpp2
-rw-r--r--clang/test/Analysis/member-expr.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Analysis/casts.cpp b/clang/test/Analysis/casts.cpp
index 2c291052793..e920bd96da0 100644
--- a/clang/test/Analysis/casts.cpp
+++ b/clang/test/Analysis/casts.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -analyzer-store=region -verify %s
+// RUN: %clang_analyze_cc1 -std=c++14 -analyzer-checker=core,debug.ExprInspection -analyzer-store=region -verify %s
void clang_analyzer_eval(bool);
diff --git a/clang/test/Analysis/diagnostics/no-store-func-path-notes.cpp b/clang/test/Analysis/diagnostics/no-store-func-path-notes.cpp
index 6e7aca05c88..587c08fae13 100644
--- a/clang/test/Analysis/diagnostics/no-store-func-path-notes.cpp
+++ b/clang/test/Analysis/diagnostics/no-store-func-path-notes.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_analyze_cc1 -x c++ -analyzer-checker=core -analyzer-output=text -verify %s
+// RUN: %clang_analyze_cc1 -x c++ -std=c++14 -analyzer-checker=core -analyzer-output=text -verify %s
int initializer1(int &p, int x) {
if (x) { // expected-note{{Taking false branch}}
diff --git a/clang/test/Analysis/member-expr.cpp b/clang/test/Analysis/member-expr.cpp
index 9951943e306..8fb6fe48f01 100644
--- a/clang/test/Analysis/member-expr.cpp
+++ b/clang/test/Analysis/member-expr.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection %s -verify
+// RUN: %clang_analyze_cc1 -std=c++14 -analyzer-checker=core,debug.ExprInspection %s -verify
void clang_analyzer_checkInlined(bool);
void clang_analyzer_eval(int);
OpenPOWER on IntegriCloud