PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / g++.dg / pr65049.C
blob7ced500a6f78d6b521307c03df8b55b79061d649
1 // PR middle-end/65409
2 // Reported by Ignacy Gawedzki <bugs@qult.net>
4 struct Foo
6   Foo() {}
7   int  a;
8   int  b;
9   char c;
12 Foo copy_foo(Foo);
14 struct Bar : Foo
16   Bar(Foo t) : Foo(copy_foo(t)) {}
19 Bar a = Foo();