brintos

brintos / llvm-project-archived public Read only

0
0
Text · 313 B · c2a7c2f Raw
22 lines · c
1// RUN: %clang_cc1 -emit-llvm < %s | grep puts | count 42 3int puts(const char *);4 5// PR32486int a(int x)7{8  int (*y)[x];9  return sizeof(*(puts("asdf"),y));10}11 12// PR324713int b(void) {14  return sizeof(*(char(*)[puts("asdf")])0);15}16 17// PR324718int c(void) {19  static int (*y)[puts("asdf")];20  return sizeof(*y);21}22