]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/dg.exp
Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / dg.exp
CommitLineData
d1e082c2 1# Copyright (C) 2000-2013 Free Software Foundation, Inc.
d93415c9
HPN
2
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
cd976c16 5# the Free Software Foundation; either version 3 of the License, or
d93415c9 6# (at your option) any later version.
21526606 7#
d93415c9
HPN
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
21526606 12#
d93415c9 13# You should have received a copy of the GNU General Public License
cd976c16
NC
14# along with GCC; see the file COPYING3. If not see
15# <http://www.gnu.org/licenses/>.
d93415c9 16
d93415c9
HPN
17# G++ testsuite that uses the `dg.exp' driver.
18
19# Load support procs.
20load_lib g++-dg.exp
21
22# If a testcase doesn't have special options, use these.
23global DEFAULT_CXXFLAGS
24if ![info exists DEFAULT_CXXFLAGS] then {
e399136a 25 set DEFAULT_CXXFLAGS " -pedantic-errors -Wno-long-long"
d93415c9
HPN
26}
27
28# Initialize `dg'.
29dg-init
30
cb260b11
JJ
31# Gather a list of all tests, with the exception of those in directories
32# that are handled specially.
c32dd1ef 33set tests [lsort [find $srcdir/$subdir *.C]]
7a1f3f5f 34set tests [prune $tests $srcdir/$subdir/bprob/*]
21526606 35set tests [prune $tests $srcdir/$subdir/charset/*]
2ce86d2e 36set tests [prune $tests $srcdir/$subdir/cilk-plus/AN/*]
768bf0ab 37set tests [prune $tests $srcdir/$subdir/compat/*]
7a1f3f5f 38set tests [prune $tests $srcdir/$subdir/debug/*]
d366d023 39set tests [prune $tests $srcdir/$subdir/dfp/*]
7a1f3f5f 40set tests [prune $tests $srcdir/$subdir/gcov/*]
d7f09764 41set tests [prune $tests $srcdir/$subdir/lto/*]
17211ab5 42set tests [prune $tests $srcdir/$subdir/pch/*]
8ba50c2c 43set tests [prune $tests $srcdir/$subdir/plugin/*]
7a1f3f5f
RH
44set tests [prune $tests $srcdir/$subdir/special/*]
45set tests [prune $tests $srcdir/$subdir/tls/*]
237eaf79 46set tests [prune $tests $srcdir/$subdir/vect/*]
1799e5d5 47set tests [prune $tests $srcdir/$subdir/gomp/*]
6bad2617 48set tests [prune $tests $srcdir/$subdir/tree-prof/*]
859fa3b8 49set tests [prune $tests $srcdir/$subdir/torture/*]
d680e79d 50set tests [prune $tests $srcdir/$subdir/graphite/*]
0a35513e 51set tests [prune $tests $srcdir/$subdir/tm/*]
c02065fc 52set tests [prune $tests $srcdir/$subdir/cilk-plus/*]
8b26599c 53set tests [prune $tests $srcdir/$subdir/guality/*]
86951993 54set tests [prune $tests $srcdir/$subdir/simulate-thread/*]
8335a643 55set tests [prune $tests $srcdir/$subdir/asan/*]
de5a5fa1 56set tests [prune $tests $srcdir/$subdir/ubsan/*]
f8b529aa 57
d93415c9 58# Main loop.
e399136a 59g++-dg-runtest $tests $DEFAULT_CXXFLAGS
d93415c9 60
812a5d4b 61# C/C++ common tests.
e399136a
JM
62g++-dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/*.\[cSi\]]] \
63 ""
812a5d4b 64
e399136a
JM
65g++-dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cpp/*.\[cS\]]] \
66 ""
97a3f2bd
MLI
67
68
d93415c9
HPN
69# All done.
70dg-finish