summaryrefslogtreecommitdiff
path: root/lit/Heap/heap-cstr.test
diff options
context:
space:
mode:
Diffstat (limited to 'lit/Heap/heap-cstr.test')
-rw-r--r--lit/Heap/heap-cstr.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/lit/Heap/heap-cstr.test b/lit/Heap/heap-cstr.test
new file mode 100644
index 000000000000..00d19ffbe47f
--- /dev/null
+++ b/lit/Heap/heap-cstr.test
@@ -0,0 +1,10 @@
+# REQUIRES: system-darwin
+# RUN: %clang %p/Inputs/cstr.c -g -o %t
+# RUN: %lldb -b -s %s -f %t | FileCheck %s
+
+br set -p return
+command script import lldb.macosx.heap
+run
+cstr "patatino"
+
+# CHECK: {{.*}}: malloc( 16) -> {{.*}}