Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/regression/test/run~warn.cpp @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 610 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// provoke one or more compiler warnings
10
11int main(int argc, char * argv[] )
12{
13  short s;
14  unsigned long ul;
15  s = s & ul; // warning from many compilers
16  if ( s == ul ) {} // warning from GCC
17  return 0;
18}
Note: See TracBrowser for help on using the repository browser.