Move ASAN_OPTIONS setting from compile command to run command, fixes test on posix

llvm-svn: 245079
This commit is contained in:
Reid Kleckner 2015-08-14 18:29:00 +00:00
parent ecc7443384
commit 14b7dde85f
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
// RUN: %env_asan_opts=detect_stack_use_after_return=1 %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
// RUN: %env_asan_opts=detect_stack_use_after_return=1 %clangxx_asan -O2 %s -o %t && not %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -O0 %s -o %t && %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck %s
// RUN: %clangxx_asan -O2 %s -o %t && %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck %s
// XFAIL: arm-linux-gnueabi,win32
// FIXME: Fix this test under GCC.