brintos

brintos / llvm-project-archived public Read only

0
0
Text · 280 B · 8ceee74 Raw
20 lines · c
1// RUN: %clang_cc1 -emit-llvm -o - %s2 3/* WG14 N1311: Yes4 * Initializing static or external variables5 */6 7static int x;8static union {9  void *vp;10  float f;11  int i;12} u;13 14int main(void) {15  return x + u.i;16}17 18// CHECK: @x ={{.*}}i32 019// CHECK-NEXT: @u ={{.*}}zeroinitializer20