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