summaryrefslogtreecommitdiff
path: root/test/Tooling/clang-check-analyzer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Tooling/clang-check-analyzer.cpp')
-rw-r--r--test/Tooling/clang-check-analyzer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Tooling/clang-check-analyzer.cpp b/test/Tooling/clang-check-analyzer.cpp
index ee0a6dc369caf..72e1a20e5ff01 100644
--- a/test/Tooling/clang-check-analyzer.cpp
+++ b/test/Tooling/clang-check-analyzer.cpp
@@ -1,4 +1,7 @@
// RUN: clang-check -analyze "%s" -- -c 2>&1 | FileCheck %s
+// RUN: clang-check -analyze "%s" -- -c -flto -Wa,--noexecstack 2>&1 | FileCheck %s
+// RUN: clang-check -analyze "%s" -- -c -no-integrated-as -flto=thin 2>&1 | FileCheck %s
+// RUN: clang-check -analyze "%s" -- -c -flto=full 2>&1 | FileCheck %s
// CHECK: Dereference of null pointer
void a(int *x) { if(x){} *x = 47; }