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 // Test, if wrongly placed '##' operators are detected 11 12 #define TEST1() A ## B 13 #define TEST2() A ## 14 15 //R #line 17 "t_1_010.cpp" 16 //R AB 17 TEST1() 18 //E t_1_010.cpp(19): error: ill formed preprocessing operator: concat ('##') 19 TEST2() // error 20 21 //H 10: t_1_010.cpp(12): #define 22 //H 08: t_1_010.cpp(12): TEST1()=A ## B 23 //H 10: t_1_010.cpp(13): #define 24 //H 08: t_1_010.cpp(13): TEST2()=A ## 25 //H 00: t_1_010.cpp(17): TEST1(), [t_1_010.cpp(12): TEST1()=A ## B] 26 //H 02: AB 27 //H 03: AB 28 //H 00: t_1_010.cpp(19): TEST2(), [t_1_010.cpp(13): TEST2()=A ##] 29 //H 18: boost::wave::preprocess_exception 30