diff options
author | David Malcolm <dmalcolm@redhat.com> | 2016-07-19 13:04:32 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2016-07-19 13:04:32 +0000 |
commit | 00f06cd7331fa1264d8e93173c0663dea5373442 (patch) | |
tree | 7d7bdc9a508c212ad33fa5028ce3ca02470342db /gcc/function-tests.c | |
parent | 60d518829c3cb98858efe3483c243897fbc9edfb (diff) | |
download | gcc-00f06cd7331fa1264d8e93173c0663dea5373442.zip gcc-00f06cd7331fa1264d8e93173c0663dea5373442.tar.gz gcc-00f06cd7331fa1264d8e93173c0663dea5373442.tar.bz2 |
Fix copy&paste bug in function-tests.c
gcc/ChangeLog:
* function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
the flags of the exit block and bb2, not just the entry block.
From-SVN: r238470
Diffstat (limited to 'gcc/function-tests.c')
-rw-r--r-- | gcc/function-tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/function-tests.c b/gcc/function-tests.c index edd355f..a59a066 100644 --- a/gcc/function-tests.c +++ b/gcc/function-tests.c @@ -433,14 +433,14 @@ verify_three_block_rtl_cfg (function *fun) basic_block exit = EXIT_BLOCK_PTR_FOR_FN (fun); ASSERT_TRUE (exit != NULL); - ASSERT_EQ (BB_RTL, entry->flags & BB_RTL); + ASSERT_EQ (BB_RTL, exit->flags & BB_RTL); ASSERT_EQ (NULL, BB_HEAD (exit)); /* The "real" basic block should be flagged as RTL, and have one or more insns. */ basic_block bb2 = get_real_block (fun); ASSERT_TRUE (bb2 != NULL); - ASSERT_EQ (BB_RTL, entry->flags & BB_RTL); + ASSERT_EQ (BB_RTL, bb2->flags & BB_RTL); ASSERT_TRUE (BB_HEAD (bb2) != NULL); } |