t_9_022.cpp 783 B

123456789101112131415161718
  1. /*=============================================================================
  2. Boost.Wave: A Standard compliant C++ preprocessor library
  3. http://www.boost.org/
  4. Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
  5. Software License, Version 1.0. (See accompanying file
  6. LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. =============================================================================*/
  8. // Verifies that preprocessing directives are properly recognized only if
  9. // the '#' is really the first character on a line before macro expansion.
  10. // See http://www.open-std.org/jtc1/sc22/wg14/docs/rr/dr_144.html.
  11. #define EMPTY
  12. # EMPTY define M 1
  13. //E t_9_022.cpp(15): error: ill formed preprocessor directive: # EMPTY define M 1