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" } */ }