For a few tests, volatile was placed before the '*' in pointer declarations, resulting in it applying to the underlying data rather than the pointer itself. Placing volatile after the '*' allows us to switch those tests to -O2. llvm-svn: 328633
38 lines
977 B
Plaintext
38 lines
977 B
Plaintext
// FIXME: This test infinite loops on darwin because it crashes
|
|
// printing a stack trace repeatedly
|
|
UNSUPPORTED: darwin
|
|
|
|
RUN: %cpp_compiler %S/TraceMallocThreadedTest.cpp -o \
|
|
RUN: %t-TraceMallocThreadedTest
|
|
|
|
RUN: %t-TraceMallocThreadedTest -trace_malloc=2 -runs=1 2>&1 | FileCheck %s
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9]+ 5639}}
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9]+ 5639}}
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9]+ 5639}}
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9]+ 5639}}
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9]+ 5639}}
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
CHECK-NEXT: {{ +\#2 +}}
|
|
|
|
CHECK: {{MALLOC\[[0-9]+] +0x[0-9]+ 5639}}
|
|
CHECK-NEXT: {{ +\#0 +}}
|
|
CHECK-NEXT: {{ +\#1 +}}
|
|
CHECK-NEXT: {{ +\#2 +}}
|