]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/wave/test/testwave/testfiles/t_1_001.cpp
1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
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 =============================================================================*/
10 // Test macro expansion order
12 #define B(x, y) [x][y]
15 //R #line 16 "t_1_001.cpp"
17 C( A(2 , 3) ) //R [ 2 ][ 3 ]
19 //H 10: t_1_001.cpp(11): #define
20 //H 08: t_1_001.cpp(11): A(x, y)=x,y
21 //H 10: t_1_001.cpp(12): #define
22 //H 08: t_1_001.cpp(12): B(x, y)=[x][y]
23 //H 10: t_1_001.cpp(13): #define
24 //H 08: t_1_001.cpp(13): C(x)=B(x)
25 //H 00: t_1_001.cpp(16): C(A(2,3)), [t_1_001.cpp(13): C(x)=B(x)]
26 //H 00: t_1_001.cpp(16): A(2,3), [t_1_001.cpp(11): A(x, y)=x,y]
30 //H 00: t_1_001.cpp(13): B(2,3), [t_1_001.cpp(12): B(x, y)=[x][y]]
34 //H 00: t_1_001.cpp(17): C( A(2 , 3) ), [t_1_001.cpp(13): C(x)=B(x)]
35 //H 00: t_1_001.cpp(17): A(2 , 3), [t_1_001.cpp(11): A(x, y)=x,y]
39 //H 00: t_1_001.cpp(13): B( 2 , 3 ), [t_1_001.cpp(12): B(x, y)=[x][y]]