run-pass-warn.cpp 440 B

123456789101112
  1. // (C) Copyright Beman Dawes 2003. Permission to copy,
  2. // use, modify, sell and distribute this software is granted provided this
  3. // copyright notice appears in all copies. This software is provided "as is"
  4. // without express or implied warranty, and with no claim as to its
  5. // suitability for any purpose.
  6. int main()
  7. {
  8. // provoke a compiler warning
  9. char x = 0xffffffff;
  10. return x ? 0 : 0; // use x to eliminate other warnings
  11. }
粤ICP备19079148号