Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/regression/test/run~warn-note.cpp @ 14

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

added boost

File size: 852 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  std::cout << "example of output before a <note> line\n";
14  std::cout << "<note>\n";
15  std::cout << "example of output after a <note> line\n";
16
17  // provoke a compiler warning to make sure <note> takes priority over
18  // a warning, but neither is lost from status reporting links HTML.
19  short s;
20  unsigned long ul;
21  s = s & ul; // warning from many compilers
22  if ( s == ul ) {} // warning from GCC
23  return 0;
24}
Note: See TracBrowser for help on using the repository browser.