☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gcc.dg
/
pr108043.c
☽
☼
gcc/testsuite/gcc.dg/pr108043.c
code
plain
raw
1
/* PR c/108043 */
2
/* { dg-do compile } */
3
/* { dg-options "" } */
4
5
typedef void F (void);
6
7
void
8
foo (void)
9
{
10
(F) {}; /* { dg-error "compound literal has function type" } */
11
(F) { foo }; /* { dg-error "compound literal has function type" } */
12
}