PR middle-end/77674
[official-gcc.git] / gcc / testsuite / g++.dg / tree-ssa / fwprop-align.C
blob5cc5f0d7d9124bf37f2f02fdd2b7917483a2ce0f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-forwprop2" } */
4 struct A
6   void foo ()
7   {
8   }
9 };
11 int main()
13   void (A::* const p)() = & A::foo;
14   A a;
15   (a.*p)();
18 /* We should eliminate the check if p points to a virtual function. */
19 /* { dg-final { scan-tree-dump-times "& 1" 0 "forwprop2" } } */