1 2 3 4 5 6 7 8 9 10 11 12
/* { dg-do compile } */ /* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-optimized" } */ typedef struct { int i; int j; } A; int foo(A *a, int i) { a->i = i; return a->i; } /* { dg-final { scan-tree-dump "return i" "optimized" } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */