diff options
Diffstat (limited to 'test/gtest/cfg.cpp')
-rw-r--r-- | test/gtest/cfg.cpp | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/test/gtest/cfg.cpp b/test/gtest/cfg.cpp index bf3742bc1..c78eb218a 100644 --- a/test/gtest/cfg.cpp +++ b/test/gtest/cfg.cpp @@ -26,7 +26,7 @@ TEST_F(CFGTest, Print) { (drop (if (result i32) (i32.const 1) - (block + (then (loop $loop (br_if $loop (i32.const 2) @@ -34,8 +34,10 @@ TEST_F(CFGTest, Print) { ) (i32.const 3) ) - (return - (i32.const 4) + (else + (return + (i32.const 4) + ) ) ) ) @@ -65,7 +67,7 @@ TEST_F(CFGTest, Print) { ;; preds: [3], succs: [6] 4: 6: i32.const 3 - 7: block + 7: block (result i32) ;; preds: [0], succs: [7] 5: @@ -230,7 +232,7 @@ TEST_F(CFGTest, BlockIndexes) { (func $foo (if (i32.const 1) - (block + (then (drop (i32.const 2) ) @@ -343,11 +345,15 @@ TEST_F(CFGTest, ReachingDefinitionsIf) { (local.get $a) (i32.const 2) ) - (local.set $b - (i32.const 3) + (then + (local.set $b + (i32.const 3) + ) ) - (local.set $a - (i32.const 4) + (else + (local.set $a + (i32.const 4) + ) ) ) (drop |