summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr43971.c
blob: 9091fc27326c9231fdb935eca8d50963ef14dd46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-Os -fno-delete-null-pointer-checks" } */

union ktime {
    long tv64;
};
typedef union ktime ktime_t;
ktime_t
do_one_initcall(ktime_t rettime, ktime_t calltime)
{
    ktime_t delta;
    delta = ({ (ktime_t){ .tv64 = (rettime).tv64 - (calltime).tv64 }; });
    return delta;
}