brintos

brintos / llvm-project-archived public Read only

0
0
Text · 234 B · 4f179ce Raw
16 lines · c
1// RUN: %clang_cc1 -emit-llvm %s  -o /dev/null2 3/* Make sure the frontend is correctly marking static stuff as internal! */4 5int X;6static int Y = 12;7 8static void foo(int Z) {9  Y = Z;10}11 12void *test(void) {13  foo(12);14  return &Y;15}16