Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr79180.C
blob: 2e3992ccd08c64e9c0b18595eb47e90434ed1f09 [
file
] [
log
] [
blame
]
// { dg-do run }
// { dg-options "-Wall -std=c++11" }
void
foo
(
int
a
)
{
if
(
a
!=
127
)
__builtin_abort
();
}
template
<
typename
...
Args
>
void
bar
(
Args
&&...
args
)
{
[&]()
{
[&]()
{
foo
(
args
...);
}
();
}
();
}
int
main
()
{
int
x
=
127
;
bar
(
x
);
}