Merged r158465 through r158660 into branch.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr32328.c
blob69b08fc4fdf181512a361f98e2f94be2798c9d7f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 struct barstruct { char const* some_string; };
6 void changethepointer(struct barstruct**);
8 void baz()
10 struct barstruct bar1;
11 struct barstruct* barptr = &bar1;
12 changethepointer(&barptr);
13 barptr->some_string = "Everything OK";
16 /* { dg-final { scan-tree-dump "Everything OK" "optimized" } } */
17 /* { dg-final { cleanup-tree-dump "optimized" } } */