aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/musttail13.c
blob: 6bd212fbeb8fcac28f1f1e43c0f3ea380065cbec (plain)
1
2
3
4
5
/* { dg-do compile { target { c || c++11 } } } */
void f(void)
{
  [[gnu::musttail]] return; /* { dg-error "cannot tail-call.*return value must be a call" } */
}