~ubuntu-branches/debian/sid/boost1.49/sid

« back to all changes in this revision

Viewing changes to libs/config/test/boost_no_long_long.ipp

  • Committer: Package Import Robot
  • Author(s): Steve M. Robbins
  • Date: 2012-02-26 00:31:44 UTC
  • Revision ID: package-import@ubuntu.com-20120226003144-eaytp12cbf6ubpms
Tags: upstream-1.49.0
ImportĀ upstreamĀ versionĀ 1.49.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//  (C) Copyright John Maddock 2001. 
 
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 most recent version.
 
7
 
 
8
//  MACRO:         BOOST_NO_LONG_LONG
 
9
//  TITLE:         C++0x long long unavailable
 
10
//  DESCRIPTION:   The platform does not support C++0x long long.
 
11
 
 
12
#include <cstdlib>
 
13
 
 
14
 
 
15
namespace boost_no_long_long{
 
16
 
 
17
int test()
 
18
{
 
19
#ifdef __GNUC__
 
20
   __extension__ long long lli = 0LL;
 
21
   __extension__ unsigned long long ulli = 0uLL;
 
22
#else
 
23
   long long lli = 0LL;
 
24
   unsigned long long ulli = 0uLL;
 
25
#endif
 
26
   (void)&lli;
 
27
   (void)&ulli;
 
28
   return 0;
 
29
}
 
30
 
 
31
}
 
32
 
 
33
 
 
34
 
 
35
 
 
36