summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr69974.c
blob: 101d6212003d7efb2165c2e6ad9a4e3fc7d4f1ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR c/69974 */
/* { dg-do compile } */

struct S;
char foo (struct S *);
struct S a;	/* { dg-error "storage size of 'a' isn't known" } */
int b;

void
bar ()
{
  b &= foo (&a);
}