Explicitly specify output file.
authorAlexander Kornienko <alexfh@google.com>
Tue, 9 Jan 2018 15:05:13 +0000 (15:05 +0000)
committerAlexander Kornienko <alexfh@google.com>
Tue, 9 Jan 2018 15:05:13 +0000 (15:05 +0000)
Otherwise the test fails when LLVM sources are on a read-only partition.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322082 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/x86-cf-protection.c

index bc64bfa64f4e0123f8fd493e9470a548966e3bcf..c853791d2ddd1d9f72d365283dfdb945c83c473e 100644 (file)
@@ -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'