1// FIXME: This test infinite loops on darwin because it crashes 2// printing a stack trace repeatedly 3// FIXME: Disabled on Windows because of a crash (possibly related to above). 4UNSUPPORTED: darwin, aarch64, windows 5 6RUN: %cpp_compiler %S/TraceMallocThreadedTest.cpp -o \ 7RUN: %t-TraceMallocThreadedTest 8 9RUN: %run %t-TraceMallocThreadedTest -trace_malloc=2 -runs=1 2>&1 | FileCheck %s 10CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}} 11CHECK-NEXT: {{ +\#0 +}} 12CHECK-NEXT: {{ +\#1 +}} 13CHECK-NEXT: {{ +\#2 +}} 14 15CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}} 16CHECK-NEXT: {{ +\#0 +}} 17CHECK-NEXT: {{ +\#1 +}} 18CHECK-NEXT: {{ +\#2 +}} 19 20CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}} 21CHECK-NEXT: {{ +\#0 +}} 22CHECK-NEXT: {{ +\#1 +}} 23CHECK-NEXT: {{ +\#2 +}} 24 25CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}} 26CHECK-NEXT: {{ +\#0 +}} 27CHECK-NEXT: {{ +\#1 +}} 28CHECK-NEXT: {{ +\#2 +}} 29 30CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}} 31CHECK-NEXT: {{ +\#0 +}} 32CHECK-NEXT: {{ +\#1 +}} 33CHECK-NEXT: {{ +\#2 +}} 34 35CHECK: {{MALLOC\[[0-9]+] +0x[0-9a-f]+ 5639}} 36CHECK-NEXT: {{ +\#0 +}} 37CHECK-NEXT: {{ +\#1 +}} 38CHECK-NEXT: {{ +\#2 +}} 39