Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/regression/test/run~fail-warn.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: 628 bytes
Line 
1//  (C) Copyright Beman Dawes 2003.  Distributed under the Boost
2//  Software License, Version 1.0. (See accompanying file
3//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4
5//  Test naming convention: the portion of the name before the tilde ("~")
6//  identifies the bjam test type. The portion after the tilde
7//  identifies the correct result to be reported by compiler_status.
8
9#include <iostream>
10
11int main()
12{
13  short s;
14  unsigned long ul;
15  s = s & ul; // warning from many compilers
16  if ( s == ul ) {} // warning from GCC
17
18  std::cout << "example of output from a run-time failure\n";
19  return 1;
20}
Note: See TracBrowser for help on using the repository browser.