diff options
author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-09 14:44:03 +0000 |
---|---|---|
committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-09 14:44:03 +0000 |
commit | 0340f4fd9edd2b33757840c1c08ada1c6a6eff6d (patch) | |
tree | 323f85a074a2d4d7a56a760a6dd1de3e851d0029 /gcc/testsuite/g++.dg/ubsan | |
parent | 25b10f06705b931aea26fe02f0499cf00b8b0df7 (diff) | |
download | gcc-0340f4fd9edd2b33757840c1c08ada1c6a6eff6d.tar.gz |
PR sanitizer/59415
* vtable-verify.c (verify_bb_vtables): Check the return value
of gimple_call_fn. Use is_gimple_call instead of gimple_code.
testsuite/
* g++.dg/ubsan/pr59415.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205805 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/ubsan')
-rw-r--r-- | gcc/testsuite/g++.dg/ubsan/pr59415.C | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ubsan/pr59415.C b/gcc/testsuite/g++.dg/ubsan/pr59415.C new file mode 100644 index 00000000000..4c373f7c927 --- /dev/null +++ b/gcc/testsuite/g++.dg/ubsan/pr59415.C @@ -0,0 +1,8 @@ +/* { dg-do compile } */ +/* { dg-options "-fsanitize=null -Wall -fvtable-verify=std" } */ + +void +foo (void) +{ + throw 0; +} |