summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/pr34989-1_0.c
blob: 245486b6e1d4ad2652b0c9cd99394b42e7cc8a69 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-lto-do link } */

extern struct globals *const ptr_to_globals;
struct globals { };
int syslogd_main(int argc, char **argv)
{
 (*(struct globals**)&ptr_to_globals) = 0;
}

int main() { return 0; }