URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr35833.c] - Rev 839
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do run } */ /* { dg-options "-ftree-vrp" } */ struct S {struct S *field;}; struct S True, False, Z; static inline int f(void) {return 1;} static inline int g(struct S **obj) { return f() && *obj == &Z; } struct S **h(struct S **x) { if (x) return g(x) ? &True.field : &False.field; else return &True.field; } extern void abort (void); int main() { if (h(&False.field) != &False.field) abort (); return 0; }
Go to most recent revision | Compare with Previous | Blame | View Log