1 // RUN: %clang_cc1 -emit-llvm < %s | grep puts | count 4
2 
3 int puts(const char *);
4 
5 // PR3248
6 int a(int x)
7 {
8   int (*y)[x];
9   return sizeof(*(puts("asdf"),y));
10 }
11 
12 // PR3247
13 int b(void) {
14   return sizeof(*(char(*)[puts("asdf")])0);
15 }
16 
17 // PR3247
18 int c(void) {
19   static int (*y)[puts("asdf")];
20   return sizeof(*y);
21 }
22