// Make sure AddressSanitizer disables _FORTIFY_SOURCE on Darwin.

// REQUIRES: system-darwin
// RUN: %clang -faddress-sanitizer %s -E -dM -o - | FileCheck %s
// CHECK: #define _FORTIFY_SOURCE 0

// Make sure AddressSanitizer disables _FORTIFY_SOURCE on Darwin.

// RUN: %clang -faddress-sanitizer %s -E -dM -target x86_64-darwin - | FileCheck %s

// CHECK: #define _FORTIFY_SOURCE 0

Use an explicit target to test that source fortification is off when building for Darwin with -faddress-sanitizer.
Use an explicit target to test that source fortification is off when building for Darwin with -faddress-sanitizer.


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@164485 91177308-0d34-0410-b5e6-96231b3b80d8
