OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libstdc++-v3/] [testsuite/] [17_intro/] [no_assert_neg.cc] - Blame information for rev 19

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 jlechner
// { 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.
5
 
6
// 2005-05-24 bkoz
7
 
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.
15
 
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.
20
 
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, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
24
// USA.
25
 
26
// 17.4.1.2 Headers
27
 
28
// This file tests that assert is not included in any of the standard
29
// includes by accident.
30
 
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>
64
 
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>
81
 
82
void foo()
83
{
84
 assert(true);
85
}
86
 
87
// { dg-error "not declared" "" { target *-*-* } 84 } 
88
 
89
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.