Debian Codegraph @

gcc/testsuite/g++.dg/tree-ssa/fwprop-align.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-forwprop2" } */
3
4 struct A
5 {
6 void foo ()
7 {
8 }
9 };
10
11 int main()
12 {
13 void (A::* const p)() = & A::foo;
14 A a;
15 (a.*p)();
16 }
17
18 /* We should eliminate the check if p points to a virtual function. */
19 /* { dg-final { scan-tree-dump-times "& 1" 0 "forwprop2" } } */