• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*=============================================================================
2     Boost.Wave: A Standard compliant C++ preprocessor library
3     http://www.boost.org/
4 
5     Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
6     Software License, Version 1.0. (See accompanying file
7     LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 =============================================================================*/
9 
10 // Test error reporting during redefinition of 'defined'
11 
12 //E t_9_007.cpp(13): warning: this predefined name may not be redefined: defined
13 #define defined 1 // undefined in C++ (16.8/3), error in C99 (6.10.8/4)
14 
15 #if defined  // error
16 <error>
17 #endif
18 
19 //H 10: t_9_007.cpp(13): #define
20 //H 18: boost::wave::macro_handling_exception
21