pr25754-1a.c 233 B

12345678910111213141516171819
  1. #include <stdio.h>
  2. #include <stdint.h>
  3. extern uintptr_t bar;
  4. uintptr_t *
  5. __attribute__ ((noinline, noclone))
  6. get_bar (void)
  7. {
  8. return &bar;
  9. }
  10. int
  11. main ()
  12. {
  13. if ((uintptr_t) get_bar () == 42)
  14. printf ("PASS\n");
  15. return 0;
  16. }