aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr53532.c
blob: 9caea40be9c52ed2db1710b1d877632e828dafac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR c/53532 */
/* { dg-do compile } */
/* { dg-options "" } */

struct S {};
extern int foo (struct S);

int
main ()
{
  foo ((struct T) {});	/* { dg-error "invalid use of undefined type" } */
  return 0;
}