Debian Codegraph @

gcc/testsuite/g++.dg/tree-ssa/pr22071.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 /* This code ends up taking the address of part of the structure that is padding,
5 and because there is no real field there, the structure alias analyzer would
6 abort. */
7 struct empty_class {};
8 struct class1 : empty_class
9 {
10 class1() {}
11 empty_class value_;
12 };
13 struct lambda : class1 { };
14 lambda _1;