t_9_004.cpp 908 B

12345678910111213141516171819202122232425262728
  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. // Test if invalid or not allowed universal characters are rejected
  9. #define \u00ff ...
  10. //R #line 16 "t_9_004.cpp"
  11. //R ...
  12. \u00ff
  13. //E t_9_004.cpp(19): error: a universal character name cannot designate a character in the basic character set: \u0061
  14. #define \u0061 weird // 0x61 == 'a'
  15. \u0061
  16. //H 10: t_9_004.cpp(12): #define
  17. //H 08: t_9_004.cpp(12): \u00ff=...
  18. //H 01: t_9_004.cpp(12): \u00ff
  19. //H 02: ...
  20. //H 03: ...
  21. //H 18: boost::wave::lexing_exception