]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/wave/test/testwave/testfiles/t_2_001.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / wave / test / testwave / testfiles / t_2_001.cpp
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 the #warning directive (note: only available, if enabled during
11 // compilation, the macro expansion is available only, when enabled separately
12 // during the compilation too)
13
14 //R
15 //E t_2_001.cpp(18): warning: encountered #warning directive: This is a warning
16 #define WARNING1 This is a
17 #define WARNING2 warning
18 #warning WARNING1 WARNING2
19
20 //H 10: t_2_001.cpp(16): #define
21 //H 08: t_2_001.cpp(16): WARNING1=This is a
22 //H 10: t_2_001.cpp(17): #define
23 //H 08: t_2_001.cpp(17): WARNING2=warning
24 //H 10: t_2_001.cpp(18): #warning
25 //H 01: t_2_001.cpp(16): WARNING1
26 //H 02: This is a
27 //H 03: This is a
28 //H 01: t_2_001.cpp(17): WARNING2
29 //H 02: warning
30 //H 03: warning
31 //H 15: WARNING1 WARNING2
32 //H 18: boost::wave::preprocess_exception