| 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 |  | 
|---|
| 11 | int 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.