test.c 436 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright 2017-2022 Yury Gribov
  3. *
  4. * The MIT License (MIT)
  5. *
  6. * Use of this source code is governed by MIT license that can be
  7. * found in the LICENSE.txt file.
  8. */
  9. #include <stdio.h>
  10. #include "interposed.h"
  11. void test() {
  12. int x, y;
  13. // Slow path
  14. x = foo(25, 0.5),
  15. y = bar(11, 22, 33);
  16. printf("Results: %x %x\n", x, y);
  17. // Fast path
  18. x = foo(35, 0.25);
  19. y = bar(44, 55, 66);
  20. printf("Results: %x %x\n", x, y);
  21. }