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