1 // PR tree-optimization/39557
2 // invalid post-dom info leads to infinite loop
4 // { dg-options "-Wall -fno-exceptions -O2 -fprofile-use -fopt-info -fno-rtti" }
8 virtual const char *bar () const;
16 inline const C & baz (int i) const { return *d2[i]; }
23 bool foo () const { return (e1[1] & 1) != 0; }
24 virtual const char *bar () const __attribute__ ((noinline));
38 const char *e = __null;
39 if (foo () && (e = c.C::bar ()))
41 for (int i = 0, n = e2.d1; i < n; i++)
42 if ((e = e2.baz (i).C::bar ()))
52 } // { dg-message "note: file" "" }