diff options
author | Alon Zakai <azakai@google.com> | 2019-06-07 11:05:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-07 11:05:30 -0700 |
commit | cac94c5aece24855c2d8cdc73e75f7f5abb29cd2 (patch) | |
tree | dae61541d5d48a4714037bc3a4c138e8666496e6 /test/debugInfo.fromasm.imprecise | |
parent | 5f252c3a6c2129a3f86e00401806b74bc2f266df (diff) | |
download | binaryen-cac94c5aece24855c2d8cdc73e75f7f5abb29cd2.tar.gz binaryen-cac94c5aece24855c2d8cdc73e75f7f5abb29cd2.tar.bz2 binaryen-cac94c5aece24855c2d8cdc73e75f7f5abb29cd2.zip |
Copy debug info when inlining (#2168)
Diffstat (limited to 'test/debugInfo.fromasm.imprecise')
-rw-r--r-- | test/debugInfo.fromasm.imprecise | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/debugInfo.fromasm.imprecise b/test/debugInfo.fromasm.imprecise index a643cce56..3ceab1574 100644 --- a/test/debugInfo.fromasm.imprecise +++ b/test/debugInfo.fromasm.imprecise @@ -5,6 +5,7 @@ (export "fib" (func $fib)) (export "switch_reach" (func $switch_reach)) (export "nofile" (func $nofile)) + (export "inlineInto" (func $inlineInto)) (func $add (; 0 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32) ;;@ tests/other_file.cpp:314159:0 (i32.add @@ -161,4 +162,20 @@ ;;@ (unknown):1337:0 (call $nofile) ) + (func $inlineInto (; 6 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32) + ;;@ inline_me.c:125:0 + (i32.add + ;;@ inline_me.c:120:0 + (local.tee $0 + (i32.add + (local.get $0) + (local.get $1) + ) + ) + (i32.add + (local.get $0) + (local.get $1) + ) + ) + ) ) |