blob: 696da5bbb48350b0f2b2e5426d5edba19c47aaae [file] [log] [blame]
Douglas Gregorae4df622009-07-01 23:29:14 +00001// RUN: clang -x c-header -o %t.pch %s &&
2// RUN: clang -include %t -x c /dev/null -emit-llvm -S -o -
3// PR 4489: Crash with PCH
4
5typedef struct _IO_FILE FILE;
6extern int fprintf (struct _IO_FILE *__restrict __stream,
7 __const char *__restrict __format, ...);
8
9int x(void)
10{
11 switch (1) {
12 case 2: ;
13 int y = 0;
14 }
15}
16
17void y(void) {
18 extern char z;
19 fprintf (0, "a");
20}