re PR tree-optimization/33593 (tree-outof-ssa moves sources of non-call exceptions...
[gcc.git] / gcc / testsuite / g++.dg / tree-ssa / pr22071.C
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;