function-redecl2.c 389 B

1234567891011121314151617181920212223242526272829
  1. extern void exit (int __status) __attribute__ ((__noreturn__));
  2. int func0(int a) __attribute__ ((pure));
  3. __attribute__ ((pure))
  4. int func0(int a)
  5. {
  6. return 0;
  7. }
  8. __attribute__ ((noreturn)) void func1(int a);
  9. void func1(int a)
  10. {
  11. exit(0);
  12. }
  13. void func2(int a) __attribute__ ((noreturn));
  14. __attribute__ ((noreturn))
  15. void func2(int a)
  16. {
  17. exit(0);
  18. }
  19. /*
  20. * check-name: function-redecl2
  21. */