summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.wendy/gnu19.c
blob: dfa7d323b1ae251f3012ea0d4931f51c0e48e3c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
Date: Wed, 7 Oct 87 11:54:57 PDT
From: faustus%ic.Berkeley.EDU@cad.Berkeley.EDU (Wayne A. Christopher)
To: bug-gcc@PREP.AI.MIT.EDU
Subject: GNU CC bug

The following fragment of code causes the message "xx.c:7: parse error" to
be printed:
*/
	typedef struct foo {
		int i;
	} foo;

	typedef struct bar {
		foo *foo;
	} bar;

main(){
	printf("Test passed (if it compiled)\n");
}
/*
I can't find anything in the ANSI standard saying that a structure tag can't
be the same as a typedef name.

	Wayne
*/