aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr108043.c
blob: 0cc0700f30a070965644ea03f7de25f236d3140e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR c/108043 */
/* { dg-do compile } */
/* { dg-options "" } */

typedef void F (void);

void
foo (void)
{
  (F) {};		/* { dg-error "compound literal has function type" } */
  (F) { foo };		/* { dg-error "compound literal has function type" } */
}