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
tree-optimization/116481 - avoid building function_type[]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
pr104031.C
blob
5f736621ae1959151051ce2ce1e2a4fa29b05f08
1
// PR c++/104031
2
// { dg-do run { target c++14 } }
3
// { dg-options "-O2" }
4
5
struct A {
6
A () {}
7
~A () {}
8
};
9
struct B {
10
A a;
11
int b = 0;
12
};
13
struct C
14
{
15
[[gnu::noipa]]
16
C (B x) { if (x.b != 42) __builtin_abort (); }
17
};
18
static C c ({ .a = A{}, .b = 42 });
19
20
int
21
main ()
22
{
23
}