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
Remove not needed __builtin_expect due to malloc predictor.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
pr79937-3.C
blob
6f0c22d6ad90c2faee64a7beb9782c9064e7460f
1
// PR c++/79937
2
// { dg-do run { target c++14 } }
3
4
struct X {
5
unsigned i;
6
unsigned n = i;
7
unsigned m = i;
8
};
9
10
X
11
bar (X x)
12
{
13
if (x.i != 1 || x.n != 2 || x.m != 1)
14
__builtin_abort ();
15
return x;
16
}
17
18
int
19
main ()
20
{
21
X x = bar (X {1, X {2}.n});
22
if (x.i != 1 || x.n != 2 || x.m != 1)
23
__builtin_abort ();
24
}