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 The tests included in this file were initially taken from the mcpp V2.5 10 preprocessor validation suite and were modified to fit into the Boost.Wave 11 unit test requirements. 12 The original files of the mcpp preprocessor are distributed under the 13 license reproduced at the end of this file. 14 =============================================================================*/ 15 16 // Tests whether __FILE__, __LINE__, __DATE__, __TIME__, __STDC__ and 17 // __STDC_VERSION__ are predefined. 18 19 // The tests 28.3 and 28.4 are disabled because it is nearly impossible to 20 // verify the __DATE__ and __TIME__ macro expansion (at least I have no idea 21 // how to achieve this reliably). 22 23 // 28.1: 24 //R #line 25 "t_5_031.cpp" 25 __FILE__ //R "$F" 26 27 // 28.2: 28 //R #line 29 "t_5_031.cpp" 29 __LINE__ //R 29 30 31 // 28.3: 32 // R #line 29 "t_5_031.cpp" 33 //__DATE__ 34 35 // 28.4: 36 // R #line 33 "t_5_031.cpp" 37 //__TIME__ 38 39 // 28.5: 40 //R #line 41 "t_5_031.cpp" 41 __STDC__ //R 1 42 43 // 28.6: 44 //R #line 45 "t_5_031.cpp" 45 __STDC_VERSION__ //R __STDC_VERSION__ 46 47 // 28.7: 48 //R #line 16 "t_5_031.hpp" 49 //R "$P(t_5_031.hpp)" 50 //R 17 51 #include "t_5_031.hpp" 52 53 /*- 54 * Copyright (c) 1998, 2002-2005 Kiyoshi Matsui <kmatsui@t3.rim.or.jp> 55 * All rights reserved. 56 * 57 * Redistribution and use in source and binary forms, with or without 58 * modification, are permitted provided that the following conditions 59 * are met: 60 * 1. Redistributions of source code must retain the above copyright 61 * notice, this list of conditions and the following disclaimer. 62 * 2. Redistributions in binary form must reproduce the above copyright 63 * notice, this list of conditions and the following disclaimer in the 64 * documentation and/or other materials provided with the distribution. 65 * 66 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND 67 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 68 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 69 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE 70 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 71 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 72 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 73 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 74 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 75 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 76 * SUCH DAMAGE. 77 */ 78 79