Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
525 B

  1. #include "headers.hxx"
  2. HINSTANCE hResourceModuleHandle = 0;
  3. const wchar_t* RUNTIME_NAME = L"coretest";
  4. DWORD DEFAULT_LOGGING_OPTIONS = OUTPUT_TYPICAL;
  5. void
  6. trigger4244()
  7. {
  8. #ifdef COMPILE_WARNINGS
  9. // trigger warning 4244 with assignment
  10. __int64 yyyy = 5678;
  11. int* leak6 = new int;
  12. *leak6 = yyyy;
  13. // and again with initialization
  14. int xxxx = yyyy;
  15. xxxx -= 100;
  16. #endif
  17. }
  18. VOID
  19. _cdecl
  20. main(int, char **)
  21. {
  22. LOG_FUNCTION(main);
  23. trigger4244();
  24. }