• 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 // Tests macro expansion order.
11 
12 #define A() B
13 #define B(x) x
14 
15 //R #line 16 "t_1_005.cpp"
16 A()(123)     //R 123
17 
18 //H 10: t_1_005.cpp(12): #define
19 //H 08: t_1_005.cpp(12): A()=B
20 //H 10: t_1_005.cpp(13): #define
21 //H 08: t_1_005.cpp(13): B(x)=x
22 //H 00: t_1_005.cpp(16): A(), [t_1_005.cpp(12): A()=B]
23 //H 02: B
24 //H 03: B
25 //H 00: t_1_005.cpp(12): B(123), [t_1_005.cpp(13): B(x)=x]
26 //H 02: 123
27 //H 03: 123
28