]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/27_io/headers/cstdio/macros.cc
[multiple changes]
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / headers / cstdio / macros.cc
1 // { dg-do compile }
2
3 // Copyright (C) 2007 Free Software Foundation, Inc.
4 //
5 // This file is part of the GNU ISO C++ Library. This library is free
6 // software; you can redistribute it and/or modify it under the
7 // terms of the GNU General Public License as published by the
8 // Free Software Foundation; either version 2, or (at your option)
9 // any later version.
10
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING. If not, write to the Free
18 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19 // USA.
20
21 #include <cstdio>
22
23 namespace gnu
24 {
25 #ifndef NULL
26 #error "NULL_must_be_a_macro"
27 #endif
28
29 #ifndef BUFSIZ
30 #error "BUFSIZ_must_be_a_macro"
31 #endif
32
33 #ifndef EOF
34 #error "EOF_must_be_a_macro"
35 #endif
36
37 #ifndef FILENAME_MAX
38 #error "FILENAME_MAX_must_be_a_macro"
39 #endif
40
41 #ifndef L_tmpnam
42 #error "L_tmpnam_must_be_a_macro"
43 #endif
44
45 #ifndef FOPEN_MAX
46 #error "FOPEN_MAX_must_be_a_macro"
47 #endif
48
49 #ifndef SEEK_CUR
50 #error "SEEK_CUR_must_be_a_macro"
51 #endif
52
53 #ifndef SEEK_END
54 #error "SEEK_END_must_be_a_macro"
55 #endif
56
57 #ifndef SEEK_SET
58 #error "SEEK_SET_must_be_a_macro"
59 #endif
60
61 #ifndef TMP_MAX
62 #error "TMP_MAX_must_be_a_macro"
63 #endif
64
65 #ifndef _IOFBF
66 #error "_IOFBF_must_be_a_macro"
67 #endif
68
69 #ifndef _IOLBF
70 #error "_IOLBF_must_be_a_macro"
71 #endif
72
73 #ifndef _IONBF
74 #error "_IONBF_must_be_a_macro"
75 #endif
76
77 #ifndef stderr
78 #error "stderr_must_be_a_macro"
79 #endif
80
81 #ifndef stdin
82 #error "stdin_must_be_a_macro"
83 #endif
84
85 #ifndef stdout
86 #error "stdout_must_be_a_macro"
87 #endif
88 }