diff options
author | Alexander Potapenko <glider@google.com> | 2012-09-24 10:25:24 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2012-09-24 10:25:24 +0000 |
commit | 68bf16f8d1e7c8dff8732f8aae4b4b418054216f (patch) | |
tree | b754e766e415595a06c2a27b2cebbe80e3129a62 | |
parent | fc97ea29b1afd9e87341bce2b0cbb0c7172b7dd8 (diff) |
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
-rw-r--r-- | test/Driver/darwin-asan-nofortify.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |