summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/x86-cf-protection.c
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2018-01-09 15:05:13 +0000
committerAlexander Kornienko <alexfh@google.com>2018-01-09 15:05:13 +0000
commitbb3c2432fa6e9dce01c1d609de48b72a0356b2d3 (patch)
treec5651ea08bda0c9aafa6c52881a943ef000e71ea /clang/test/CodeGen/x86-cf-protection.c
parentc5e0b63e5631f6758d958632f1015e06adefd641 (diff)
downloadbcm5719-llvm-bb3c2432fa6e9dce01c1d609de48b72a0356b2d3.tar.gz
bcm5719-llvm-bb3c2432fa6e9dce01c1d609de48b72a0356b2d3.zip
Explicitly specify output file.
Otherwise the test fails when LLVM sources are on a read-only partition. llvm-svn: 322082
Diffstat (limited to 'clang/test/CodeGen/x86-cf-protection.c')
-rw-r--r--clang/test/CodeGen/x86-cf-protection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/x86-cf-protection.c b/clang/test/CodeGen/x86-cf-protection.c
index bc64bfa64f4..c853791d2dd 100644
--- a/clang/test/CodeGen/x86-cf-protection.c
+++ b/clang/test/CodeGen/x86-cf-protection.c
@@ -1,5 +1,5 @@
-// RUN: not %clang_cc1 -fsyntax-only -S -emit-llvm -triple i386-unknown-unknown -fcf-protection=return %s 2>&1 | FileCheck %s --check-prefix=RETURN
-// RUN: not %clang_cc1 -fsyntax-only -S -emit-llvm -triple i386-unknown-unknown -fcf-protection=branch %s 2>&1 | FileCheck %s --check-prefix=BRANCH
+// RUN: not %clang_cc1 -fsyntax-only -S -emit-llvm -o %t -triple i386-unknown-unknown -fcf-protection=return %s 2>&1 | FileCheck %s --check-prefix=RETURN
+// RUN: not %clang_cc1 -fsyntax-only -S -emit-llvm -o %t -triple i386-unknown-unknown -fcf-protection=branch %s 2>&1 | FileCheck %s --check-prefix=BRANCH
// RETURN: error: option 'cf-protection=return' cannot be specified without '-mshstk'
// BRANCH: error: option 'cf-protection=branch' cannot be specified without '-mibt'
OpenPOWER on IntegriCloud