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 // Tests, if macro expansion eats up follow up tokens under certain conditions 11 // (which it shouldn't). 12 13 #define SCAN(x) x 14 15 #define BUG BUG_2 16 #define BUG_2 17 18 //R #line 19 "t_1_025.cpp" 19 SCAN(BUG) 1 2 3 4 5 //R 1 2 3 4 5 20 21 //H 10: t_1_025.cpp(13): #define 22 //H 08: t_1_025.cpp(13): SCAN(x)=x 23 //H 10: t_1_025.cpp(15): #define 24 //H 08: t_1_025.cpp(15): BUG=BUG_2 25 //H 10: t_1_025.cpp(16): #define 26 //H 08: t_1_025.cpp(16): BUG_2= 27 //H 00: t_1_025.cpp(19): SCAN(BUG), [t_1_025.cpp(13): SCAN(x)=x] 28 //H 01: t_1_025.cpp(15): BUG 29 //H 02: BUG_2 30 //H 01: t_1_025.cpp(16): BUG_2 31 //H 02: 32 //H 03: _ 33 //H 03: _ 34 //H 02: 35 //H 03: _ 36