Introduce tests for -fsanitize-address-use-after-scope
authorMartin Liska <mliska@suse.cz>
Mon, 7 Nov 2016 10:25:18 +0000 (11:25 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 7 Nov 2016 10:25:18 +0000 (10:25 +0000)
commit00d6b7a1a7959ba0814bd4e8af368efc2f351487
tree7034f0088795989e898fafc5afc5995edaf506e2
parent6dc4a6045089adc9ec9efbbc07db25c4a21fc0ff
Introduce tests for -fsanitize-address-use-after-scope

* c-c++-common/asan/force-inline-opt0-1.c: Disable
-f-sanitize-address-use-after-scope.
* c-c++-common/asan/inc.c: Change number of expected ASAN_CHECK
internal fn calls.
* g++.dg/asan/use-after-scope-1.C: New test.
* g++.dg/asan/use-after-scope-2.C: Likewise.
* g++.dg/asan/use-after-scope-3.C: Likewise.
* g++.dg/asan/use-after-scope-types-1.C: Likewise.
* g++.dg/asan/use-after-scope-types-2.C: Likewise.
* g++.dg/asan/use-after-scope-types-3.C: Likewise.
* g++.dg/asan/use-after-scope-types-4.C: Likewise.
* g++.dg/asan/use-after-scope-types-5.C: Likewise.
* g++.dg/asan/use-after-scope-types.h: Likewise.
* gcc.dg/asan/use-after-scope-1.c: Likewise.
* gcc.dg/asan/use-after-scope-2.c: Likewise.
* gcc.dg/asan/use-after-scope-3.c: Likewise.
* gcc.dg/asan/use-after-scope-4.c: Likewise.
* gcc.dg/asan/use-after-scope-5.c: Likewise.
* gcc.dg/asan/use-after-scope-6.c: Likewise.
* gcc.dg/asan/use-after-scope-7.c: Likewise.
* gcc.dg/asan/use-after-scope-8.c: Likewise.
* gcc.dg/asan/use-after-scope-9.c: Likewise.
* gcc.dg/asan/use-after-scope-switch-1.c: Likewise.
* gcc.dg/asan/use-after-scope-switch-2.c: Likewise.
* gcc.dg/asan/use-after-scope-switch-3.c: Likewise.
* gcc.dg/asan/use-after-scope-goto-1.c: Likewise.
* gcc.dg/asan/use-after-scope-goto-2.c: Likewise.

From-SVN: r241897
26 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asan/force-inline-opt0-1.c
gcc/testsuite/c-c++-common/asan/inc.c
gcc/testsuite/g++.dg/asan/use-after-scope-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/asan/use-after-scope-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/asan/use-after-scope-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/asan/use-after-scope-types-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/asan/use-after-scope-types-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/asan/use-after-scope-types-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/asan/use-after-scope-types-4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/asan/use-after-scope-types-5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/asan/use-after-scope-types.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/use-after-scope-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/use-after-scope-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/use-after-scope-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/use-after-scope-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/use-after-scope-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/use-after-scope-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/use-after-scope-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/use-after-scope-8.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/use-after-scope-9.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/use-after-scope-goto-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/use-after-scope-goto-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/use-after-scope-switch-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/use-after-scope-switch-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/asan/use-after-scope-switch-3.c [new file with mode: 0644]