1/* { dg-lto-do link } */ 2 3extern int printf (const char *__restrict __format, ...); 4typedef long int __time_t; 5typedef long int __suseconds_t; 6 7struct timeval 8 { 9 __time_t tv_sec; 10 __suseconds_t tv_usec; 11 }; 12 13struct timezone 14 { 15 int tz_minuteswest; 16 int tz_dsttime; 17 }; 18typedef struct timezone *__restrict __timezone_ptr_t; 19 20extern int gettimeofday (struct timeval *__restrict __tv, __timezone_ptr_t __tz); 21 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