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
rtl: Validate subreg info when optimizing vec_select.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tree-ssa
/
pr37356.C
blob
45b99a037b9693e8bfe16d03aa9cb908df893a15
1
// PR middle-end/37356 */
2
// { dg-do compile }
3
// { dg-options "-O" }
4
5
bool foo ();
6
int bar ();
7
8
bool
9
baz (int v)
10
{
11
return v == bar ();
12
}
13
14
struct A
15
{
16
A () { baz (1) || foo (); }
17
};
18
19
struct B
20
{
21
static A get () { return A (); }
22
B (const int &x) { }
23
B () : b (get ()) { }
24
A b;
25
};
26
27
B c;
28
29
void
30
test ()
31
{
32
int d;
33
c = d;
34
}