ifuncvar3.c 202 B

123456789101112131415
  1. /* Test global variable initialized to hidden STT_GNU_IFUNC symbol. */
  2. #include <assert.h>
  3. extern void bar (void);
  4. extern int didit;
  5. int
  6. main (void)
  7. {
  8. bar ();
  9. assert (didit == 1);
  10. return 0;
  11. }