by@n4o847
WA
510ms
@formatString = private constant [2 x i8] c"%d" define i32 @main() { entry: %d = shl i32 2, 3 %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @formatString , i32 0, i32 0), i32 %d) ret i32 1 } declare i32 @printf(i8*, ...)
24 23 03 83 03 19 29 95 36 18 57 43
/usr/bin/llc: /tmp/code.ll:6:32: error: invalid forward reference to function 'printf' with wrong type! %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @formatString , i32 0, i32 0), i32 %d) ^ gcc: error: /tmp/code.o: No such file or directory gcc: fatal error: no input files compilation terminated. /bin/script: line 17: /tmp/code: not found