URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [ipa/] [ipa-pta-16.c] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do run } */ /* { dg-options "-O2 -fno-tree-sra -fipa-pta -fdump-ipa-pta" } */ struct X { long l1; struct Y { long l2; int *p; } y; }; int i; static int __attribute__((noinline)) foo (struct X *x) { struct Y y = x->y; *y.p = 0; i = 1; return *y.p; } extern void abort (void); int main() { struct X x; x.y.p = &i; if (foo(&x) != 1) abort (); return 0; } /* { dg-final { scan-ipa-dump "y.\[0-9\]*\\\+\[0-9\]* = { i }" "pta" } } */ /* { dg-final { cleanup-ipa-dump "pta" } } */
Go to most recent revision | Compare with Previous | Blame | View Log