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
/
auto-fn25.C
blob
fdad4653560f7de3a37191472454dcb0584d3d4e
1
// PR c++/60574
2
// { dg-do compile { target c++14 } }
3
// { dg-require-effective-target lto }
4
// { dg-options "-flto" }
5
6
struct A
7
{
8
virtual auto foo() {} // { dg-error "virtual.*deduced" }
9
};
10
11
struct B : A
12
{
13
auto foo();
14
};
15
16
B b;