In the latest episode of "Deserializing bugs caused by accessors" the series reached...
[clang.git] / test / PCH / pr4489.c
blob033e55b853c8962ce5083e9d7bb62b861329295c
1 // RUN: %clang -x c-header -o %t.pch %s
2 // RUN: echo > %t.empty.c
3 // RUN: %clang -include %t -x c %t.empty.c -emit-llvm -S -o -
5 // FIXME: This test is forcibly disabled, it is flaky on the clang-i686-xp-msvc9
6 // buildbot.
7 //
8 // RUN: false
9 // XFAIL: *
11 // PR 4489: Crash with PCH
12 // PR 4492: Crash with PCH (round two)
13 // PR 4509: Crash with PCH (round three)
14 typedef struct _IO_FILE FILE;
15 extern int fprintf (struct _IO_FILE *__restrict __stream,
16 __const char *__restrict __format, ...);
18 int x(void)
20 switch (1) {
21 case 2: ;
22 int y = 0;
26 void y(void) {
27 extern char z;
28 fprintf (0, "a");
31 struct y0 { int i; } y0[1] = {};
33 void x0(void)
35 extern char z0;
36 fprintf (0, "a");
39 void x1(void)
41 fprintf (0, "asdf");
44 void y1(void)
46 extern char e;
47 fprintf (0, "asdf");