Fix new sancov tests

* gcc.dg/sancov/sancov.exp: Load asan-dg.exp.
	* gcc.dg/sancov/asan.c: Don't run when asan is not available.

From-SVN: r231364
This commit is contained in:
Dmitry Vyukov 2015-12-07 07:27:50 -08:00 committed by Dmitry Vyukov
parent fc0efeeab3
commit f3d6b759e1
3 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2015-12-06 Dmitry Vyukov <dvyukov@google.com>
* gcc.dg/sancov/sancov.exp: Load asan-dg.exp.
* gcc.dg/sancov/asan.c: Don't run when asan is not available.
2015-12-07 Nathan Sidwell <nathan@acm.org>
* gcc.target/nvptx/decl-init.c: New.

View file

@ -3,7 +3,7 @@
- coverage does not instrument asan-emitted basic blocks
- asan considers coverage callback as "nonfreeing" (thus 1 asan store
callback. */
/* { dg-do compile } */
/* { dg-do compile { target fsanitize_address } } */
/* { dg-options "-fsanitize-coverage=trace-pc -fsanitize=address -fdump-tree-optimized" } */
void foo(volatile int *a, int *b)

View file

@ -17,6 +17,7 @@
# <http://www.gnu.org/licenses/>.
load_lib gcc-dg.exp
load_lib asan-dg.exp
load_lib torture-options.exp
dg-init