From: Alexander Kornienko Date: Tue, 9 Jan 2018 15:05:13 +0000 (+0000) Subject: Explicitly specify output file. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a36a2f5c8ea5eb627f641f8b6eabb1647cd83844;p=clang Explicitly specify output file. 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 --- diff --git a/test/CodeGen/x86-cf-protection.c b/test/CodeGen/x86-cf-protection.c index bc64bfa64f..c853791d2d 100644 --- a/test/CodeGen/x86-cf-protection.c +++ b/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'