From: Alexander Potapenko Date: Mon, 24 Sep 2012 10:25:24 +0000 (+0000) Subject: Use an explicit target to test that source fortification is off when building for... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68bf16f8d1e7c8dff8732f8aae4b4b418054216f;p=clang Use an explicit target to test that source fortification is off when building for Darwin with -faddress-sanitizer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164485 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/darwin-asan-nofortify.c b/test/Driver/darwin-asan-nofortify.c index 59f00ff98b..42e81f872f 100644 --- a/test/Driver/darwin-asan-nofortify.c +++ b/test/Driver/darwin-asan-nofortify.c @@ -1,5 +1,5 @@ // Make sure AddressSanitizer disables _FORTIFY_SOURCE on Darwin. -// REQUIRES: system-darwin -// RUN: %clang -faddress-sanitizer %s -E -dM -o - | FileCheck %s +// RUN: %clang -faddress-sanitizer %s -E -dM -target x86_64-darwin - | FileCheck %s + // CHECK: #define _FORTIFY_SOURCE 0