PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / lto / pr60449_0.c
blobe6c3166e94a297559919909483f4274cd9def60d
1 /* { dg-lto-do link } */
2 /* { dg-require-effective-target gettimeofday } */
4 extern int printf (const char *__restrict __format, ...);
5 typedef long int __time_t;
6 typedef long int __suseconds_t;
8 struct timeval
10 __time_t tv_sec;
11 __suseconds_t tv_usec;
14 struct timezone
16 int tz_minuteswest;
17 int tz_dsttime;
19 typedef struct timezone *__restrict __timezone_ptr_t;
21 extern int gettimeofday (struct timeval *__restrict __tv, __timezone_ptr_t __tz);
23 int bar (void)
25 struct timeval tv;
26 struct timezone tz;
28 gettimeofday (&tv, &tz);
29 printf ("This is from bar %i\n", tz.tz_dsttime);
30 return 5;