OSDN Git Service

* c-decl.c (grokfield): Allow typedefs for anonymous structs and
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr34989-1.c
1 /* { dg-do compile } */
2 /* { dg-options "--combine -O2" } */
3 /* { dg-additional-sources "pr34989-2.c" } */
4
5 extern struct globals *const ptr_to_globals;
6 struct globals { };
7 int syslogd_main(int argc, char **argv)
8 {
9  (*(struct globals**)&ptr_to_globals) = 0;
10 }