]> git.proxmox.com Git - rustc.git/blobdiff - src/compiler-rt/test/asan/TestCases/Linux/leak.cc
Imported Upstream version 1.6.0+dfsg1
[rustc.git] / src / compiler-rt / test / asan / TestCases / Linux / leak.cc
index df6d0903406323638d0cd6e707d22b1defb30984..e22cd6eac16fa591223e0c2d6b0e99cb4c0c7e7b 100644 (file)
@@ -1,10 +1,10 @@
 // Minimal test for LeakSanitizer+AddressSanitizer.
-// REQUIRES: asan-64-bits
+// REQUIRES: leak-detection
 //
 // RUN: %clangxx_asan  %s -o %t
-// RUN: ASAN_OPTIONS=detect_leaks=1 not %run %t  2>&1 | FileCheck %s
-// RUN: ASAN_OPTIONS=""                 %run %t
-// RUN: ASAN_OPTIONS=detect_leaks=0     %run %t
+// RUN: %env_asan_opts=detect_leaks=1 not %run %t  2>&1 | FileCheck %s
+// RUN: not %run %t  2>&1 | FileCheck %s
+// RUN: %env_asan_opts=detect_leaks=0     %run %t
 #include <stdio.h>
 int *t;