aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/19277289.c
blob: 9f7703e37ccca3e3d5fe17b49da8e3d81b0983e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
/* { dg-options "-O2 -w" } */

struct xktime {
  int tv;
};
typedef struct xktime xktime_t;

__attribute__((always_inline)) xktime_t xktime_set(void)
{
  return (xktime_t) { .tv = 0 };
}

#pragma GCC optimize ("O0")

extern void foo (xktime_t);

void LCD_WaitTE(void)
{
  foo (xktime_set());
}