diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-10 13:11:23 -0400 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-10 13:19:01 -0400 |
commit | da9b1401a80f4217ac80d55e2b23d2b423bbbe58 (patch) | |
tree | 307c6536dd75b2c2b19dc1dd4e8409ba1ccf9675 /tests | |
parent | 3ed0d953500f3fea00ee445678c9c52760cfac13 (diff) |
do not assert on output of numeric 0 from a js handler
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cases/sub_11_0.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/cases/sub_11_0.ll b/tests/cases/sub_11_0.ll new file mode 100644 index 00000000..7f0bb285 --- /dev/null +++ b/tests/cases/sub_11_0.ll @@ -0,0 +1,16 @@ +; ModuleID = 'tests/hello_world.bc' + +@.str = private unnamed_addr constant [15 x i8] c"hello, world!\0A\00", align 1 ; [#uses=1 type=[15 x i8]*] + +; [#uses=0] +define i32 @main() { +entry: + %retval = alloca i32, align 4 ; [#uses=1 type=i32*] + %0 = sub nsw i32 1, 1 + store i32 %0, i32* %retval + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([15 x i8]* @.str, i32 0, i32 0)) ; [#uses=0 type=i32] + ret i32 1 +} + +; [#uses=1] +declare i32 @printf(i8*, ...) |