repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr65049.C
blob
7ced500a6f78d6b521307c03df8b55b79061d649
1
// PR middle-end/65409
2
// Reported by Ignacy Gawedzki <bugs@qult.net>
3
4
struct Foo
5
{
6
Foo() {}
7
int a;
8
int b;
9
char c;
10
};
11
12
Foo copy_foo(Foo);
13
14
struct Bar : Foo
15
{
16
Bar(Foo t) : Foo(copy_foo(t)) {}
17
};
18
19
Bar a = Foo();