September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -1,5 +1,9 @@
|
|||
@str = internal constant [14 x i8] c"Hello, world!\00"
|
||||
declare i32 @puts(i8*)
|
||||
; const char str[14] = "Hello World!\00"
|
||||
@.str = private unnamed_addr constant [14 x i8] c"Hello, world!\00"
|
||||
|
||||
; declare extern `puts` method
|
||||
declare i32 @puts(i8*) nounwind
|
||||
|
||||
define i32 @main()
|
||||
{
|
||||
call i32 @puts( i8* getelementptr ([14 x i8]* @str, i32 0,i32 0))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue