aboutsummaryrefslogtreecommitdiffhomepage
path: root/transform/testdata/allocs.out.ll
diff options
context:
space:
mode:
Diffstat (limited to 'transform/testdata/allocs.out.ll')
-rw-r--r--transform/testdata/allocs.out.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/transform/testdata/allocs.out.ll b/transform/testdata/allocs.out.ll
index eacf62b24..eaddd4645 100644
--- a/transform/testdata/allocs.out.ll
+++ b/transform/testdata/allocs.out.ll
@@ -1,6 +1,8 @@
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "armv7m-none-eabi"
[email protected] = internal global i8 0, align 1
+
declare nonnull i8* @runtime.alloc(i32)
define void @testInt() {
@@ -66,6 +68,12 @@ end: ; preds = %loop
ret void
}
+define void @testZeroSizedAlloc() {
+ %1 = bitcast i8* @runtime.zeroSizedAlloc to i32*
+ %2 = call i32* @noescapeIntPtr(i32* %1)
+ ret void
+}
+
declare i32* @escapeIntPtr(i32*)
declare i32* @noescapeIntPtr(i32* nocapture)