Merge reload-branch up to revision 101000
[official-gcc.git] / libstdc++-v3 / testsuite / 17_intro / no_assert_neg.cc
blobf3ffa4a48e0adc76f99a30e00955961edc4cd5f0
1 // { dg-do compile }
2 // { dg-options "-D__GLIBCXX__=99999999" }
3 // NB: This is done to force any generated and possibly included PCH
4 // to be invalid.
6 // 2005-05-24 bkoz
8 // Copyright (C) 2005 Free Software Foundation, Inc.
9 //
10 // This file is part of the GNU ISO C++ Library. This library is free
11 // software; you can redistribute it and/or modify it under the
12 // terms of the GNU General Public License as published by the
13 // Free Software Foundation; either version 2, or (at your option)
14 // any later version.
16 // This library is distributed in the hope that it will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 // GNU General Public License for more details.
21 // You should have received a copy of the GNU General Public License along
22 // with this library; see the file COPYING. If not, write to the Free
23 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
24 // USA.
26 // 17.4.1.2 Headers
28 // This file tests that assert is not included in any of the standard
29 // includes by accident.
31 // C++ headers
32 #include <algorithm>
33 #include <bitset>
34 #include <complex>
35 #include <deque>
36 #include <exception>
37 #include <fstream>
38 #include <functional>
39 #include <iomanip>
40 #include <ios>
41 #include <iosfwd>
42 #include <iostream>
43 #include <istream>
44 #include <iterator>
45 #include <limits>
46 #include <list>
47 #include <locale>
48 #include <map>
49 #include <memory>
50 #include <new>
51 #include <numeric>
52 #include <ostream>
53 #include <queue>
54 #include <set>
55 #include <sstream>
56 #include <stack>
57 #include <stdexcept>
58 #include <streambuf>
59 #include <string>
60 #include <typeinfo>
61 #include <utility>
62 #include <valarray>
63 #include <vector>
65 // C headers
66 #include <cctype>
67 #include <cerrno>
68 #include <cfloat>
69 #include <ciso646>
70 #include <climits>
71 #include <clocale>
72 #include <cmath>
73 #include <csetjmp>
74 #include <csignal>
75 #include <cstdarg>
76 #include <cstddef>
77 #include <cstdio>
78 #include <cstdlib>
79 #include <cstring>
80 #include <ctime>
82 void foo()
84 assert(true);
87 // { dg-error "not declared" "" { target *-*-* } 84 }