(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
torture/
pr79180.C
// { 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);
}