Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/config/test/abi/main.cpp @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 756 bytes
Line 
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(__BORLANDC__)
15#pragma option -Ve- -Vx- -a1 -b-
16#endif
17#include <stdio.h>
18#include "abi_test.hpp"
19
20
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
Note: See TracBrowser for help on using the repository browser.