1 2 3 4 5 6 7 8 9 10 11 12
/* { do-go compile } */ /* { dg-options "-fdump-tree-gimple" } */ typedef struct { int i; } Foo; Foo foo; Foo *bar(void) { return (Foo *)&foo.i; } /* { dg-final { scan-tree-dump "&foo;" "gimple" } } */ /* { dg-final { cleanup-tree-dump "gimple" } } */