We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c46393 commit c02e490Copy full SHA for c02e490
tests/alive-tv/memory/malloc-calloc.srctgt.ll
@@ -1,10 +1,12 @@
1
+target triple = "x86-unknown-linux-gnu"
2
+target datalayout = "e-p:32:32"
3
+
4
define i8* @src(i32 %size) {
5
%call1 = call i8* @malloc(i32 %size)
6
ret i8* %call1
7
}
8
9
define i8* @tgt(i32 %size) {
-; %calloc = call i8* @malloc(i32 %size)
10
%calloc = call i8* @calloc(i32 1, i32 %size)
11
ret i8* %calloc
12
0 commit comments