diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-08 11:07:35 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-08 11:07:35 -0700 |
commit | 39e8885634d8087751703942918b5b8b6e13ed27 (patch) | |
tree | 4d2bbede02dfc9ddf06792d6cc873668ac5d86a5 /tests/cases/quotedlabel.ll | |
parent | 0a1110333ae81557e6319f2109bc591f834dbc16 (diff) |
add support for quoted labels; fixes #360
Diffstat (limited to 'tests/cases/quotedlabel.ll')
-rw-r--r-- | tests/cases/quotedlabel.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/cases/quotedlabel.ll b/tests/cases/quotedlabel.ll new file mode 100644 index 00000000..d32e380a --- /dev/null +++ b/tests/cases/quotedlabel.ll @@ -0,0 +1,19 @@ +; ModuleID = '/tmp/emscripten/tmp/src.cpp.o' +target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32" +target triple = "i386-pc-linux-gnu" + +@.str = private constant [14 x i8] c"hello, world!\00", align 1 ; [#uses=1] + +; [#uses=1] +declare i32 @puts(i8*) + +; [#uses=0] +define i32 @main() { +entry: + br label %"finish$$$" + +"finish$$$": ; preds = %entry + %0 = call i32 bitcast (i32 (i8*)* @puts to i32 (i32*)*)(i8* getelementptr inbounds ([14 x i8]* @.str, i32 0, i32 0)) ; [#uses=0] + ret i32 0 +} + |