Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/lto/pr60449_0.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-lto-do link } */ /* { dg-require-effective-target gettimeofday } */ extern int printf (const char *__restrict __format, ...); typedef long int __time_t; typedef long int __suseconds_t; struct timeval { __time_t tv_sec; __suseconds_t tv_usec; }; struct timezone { int tz_minuteswest; int tz_dsttime; }; typedef struct timezone *__restrict __timezone_ptr_t; extern int gettimeofday (struct timeval *__restrict __tv, __timezone_ptr_t __tz); int bar (void) { struct timeval tv; struct timezone tz; gettimeofday (&tv, &tz); printf ("This is from bar %i\n", tz.tz_dsttime); return 5; }