OSDN Git Service

PR preprocessor/30805:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr32328.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3
4 struct barstruct { char const* some_string; };
5
6 void changethepointer(struct barstruct**);
7
8 void baz()
9 {
10         struct barstruct bar1;
11         struct barstruct* barptr = &bar1;
12         changethepointer(&barptr);
13         barptr->some_string = "Everything OK";
14 }
15
16 /* { dg-final { scan-tree-dump "Everything OK" "optimized" } } */
17 /* { dg-final { cleanup-tree-dump "optimized" } } */