Result

WA

Duration

530ms

Code [DL]

define i32 @main() {
  %1 = alloca i8, align 1
  call i32 (i8) @getchar(getelementptr %1)
  ret i32 0
}

declare i32 @putchar(i8)
declare i32 @getchar(i8*)

stdin

52 02 88
52 90 09
58 41 01
30 24 36

stdout

stderr

/usr/bin/llc: /tmp/code.ll:3:26: error: expected type
  call i32 (i8) @getchar(getelementptr %1)
                         ^
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

strace