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:
610 bytes
|
Rev | Line | |
---|
[29] | 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 | |
---|
| 11 | int 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.