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.

25 lines
325 B

5 years ago
  1. #include "c2logic/builtins.h"
  2. // expected output on -O2 is only d should be in the compiled output
  3. void a(void);
  4. void b(void);
  5. void c(void);
  6. void d(void);
  7. void a(void) {
  8. print("a");
  9. b();
  10. }
  11. void b(void) {
  12. print("b");
  13. c();
  14. a();
  15. d();
  16. }
  17. void c(void) {
  18. print("c");
  19. }
  20. void d(void) {
  21. print("d");
  22. }
  23. void main(void) {
  24. d();
  25. }