diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/tree-ssa/pr26421.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/pr26421.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr26421.c b/gcc/testsuite/gcc.dg/tree-ssa/pr26421.c new file mode 100644 index 00000000000..edb3685c11e --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr26421.c @@ -0,0 +1,19 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-alias1-vops" } */ + +typedef struct { + int i; + int j; + int k; +} Foo; + +void bar(Foo*); +void foo(void) +{ + Foo a; + a.i = 1; + bar(&a); +} + +/* { dg-final { scan-tree-dump-times "V_MAY_DEF" 1 "alias1" } } */ +/* { dg-final { cleanup-tree-dump "alias1" } } */ |