1 // (C) Copyright John Maddock 2003. 2 // Use, modification and distribution are subject to the 3 // Boost Software License, Version 1.0. (See accompanying file 4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 5 6 // See http://www.boost.org/libs/config for the most recent version. 7 8 // 9 // before we do anything else, we need to mess with the compilers ABI: 10 // 11 #include <boost/config.hpp> 12 #ifdef BOOST_MSVC 13 #pragma pack(1) 14 #elif defined(BOOST_BORLANDC) 15 #pragma option -Ve- -Vx- -a1 -b- 16 #endif 17 #include <stdio.h> 18 #include "abi_test.hpp" 19 20 main()21int main() 22 { 23 abi_test t; 24 if((t.inline_one() != t.virtual_one()) || (t.inline_two() != t.virtual_two())) 25 { 26 fwrite("Failed ABI test", 1, 15, stdout); 27 return -1; 28 } 29 return 0; 30 } 31 32