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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tm
/
lambda1.C
blob
d0cffbff22fba0d9baa3f51a9ffdb65452837bee
1
// Test for lambda conversion.
2
// { dg-options "-fgnu-tm -std=c++14" }
3
4
void f(bool b)
5
{
6
void (*p)() transaction_safe;
7
8
p = []() transaction_safe {};
9
p = []{}; // { dg-error "transaction_safe" }
10
}