11553Srgrimes# Copyright (C) 2012-2015 Free Software Foundation, Inc.
274532Sru#
31553Srgrimes# This file is part of GCC.
41553Srgrimes#
574816Sru# GCC is free software; you can redistribute it and/or modify
6207736Smckusick# it under the terms of the GNU General Public License as published by
7207736Smckusick# the Free Software Foundation; either version 3, or (at your option)
81553Srgrimes# any later version.
91553Srgrimes#
10# GCC is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with GCC; see the file COPYING3.  If not see
17# <http://www.gnu.org/licenses/>.
18
19# Load support procs.
20load_lib g++-dg.exp
21load_lib asan-dg.exp
22
23# Initialize `dg'.
24dg-init
25asan_init
26
27# Main loop.
28if [check_effective_target_fsanitize_address] {
29  gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.C $srcdir/c-c++-common/asan/*.c]] "" ""
30}
31
32# All done.
33asan_finish
34dg-finish
35