1 /* { dg-lto-do link } */ 2 3 extern int printf (const char *__restrict __format, ...); 4 typedef long int __time_t; 5 typedef long int __suseconds_t; 6 7 struct timeval 8 { 9 __time_t tv_sec; 10 __suseconds_t tv_usec; 11 }; 12 13 struct timezone 14 { 15 int tz_minuteswest; 16 int tz_dsttime; 17 }; 18 typedef struct timezone *__restrict __timezone_ptr_t; 19 20 extern int gettimeofday (struct timeval *__restrict __tv, __timezone_ptr_t __tz); 21 bar(void)22int bar (void) 23 { 24 struct timeval tv; 25 struct timezone tz; 26 27 gettimeofday (&tv, &tz); 28 printf ("This is from bar %i\n", tz.tz_dsttime); 29 return 5; 30 } 31