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
/
dr1560.C
blob
b21ca98e2797e3cdfa448e688c547e3911c45e80
1
// Core 1560
2
// { dg-do compile { target c++14 } }
3
4
struct A
5
{
6
A();
7
A(const A&) = delete;
8
};
9
10
void f(bool b)
11
{
12
A a;
13
b ? a : throw 42;
14
}