run-pass-warn.cpp 320 B

12345678910
  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. int main()
  5. {
  6. // provoke a compiler warning
  7. char x = 0xffffffff;
  8. return x ? 0 : 0; // use x to eliminate other warnings
  9. }
粤ICP备19079148号