run-note-warn.cpp 716 B

12345678910111213141516171819
  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. #include <iostream>
  7. int main()
  8. {
  9. std::cout << "example of output before a <note> line\n";
  10. std::cout << "<note>\n";
  11. std::cout << "example of output after a <note> line\n";
  12. // provoke a compiler warning to make sure <note> takes priority over
  13. // a warning, but neither is lost from status reporting links HTML.
  14. char x = 0xffffffff;
  15. return x ? 0 : 0; // use x to eliminate other warnings
  16. }
粤ICP备19079148号