summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/test/safestack/canary.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/safestack/canary.c b/compiler-rt/test/safestack/canary.c
index b316aa2403f..c6b81f24327 100644
--- a/compiler-rt/test/safestack/canary.c
+++ b/compiler-rt/test/safestack/canary.c
@@ -1,7 +1,7 @@
-// RUN: %clang_safestack -g %s -o %t.nossp
+// RUN: %clang_safestack -fno-stack-protector -D_FORTIFY_SOURCE=0 -g %s -o %t.nossp
// RUN: %run %t.nossp 2>&1 | FileCheck --check-prefix=NOSSP %s
-// RUN: %clang_safestack -fstack-protector-all -g %s -o %t.ssp
+// RUN: %clang_safestack -fstack-protector-all -D_FORTIFY_SOURCE=0 -g %s -o %t.ssp
// RUN: not --crash %run %t.ssp 2>&1 | FileCheck -check-prefix=SSP %s
// Test stack canaries on the unsafe stack.
OpenPOWER on IntegriCloud