1 // RUN: %clang_cc1 -emit-llvm -o %t %s
3 // RUN: grep '@r = common global \[1 x .*\] zeroinitializer' %t
10 // RUN: grep '@x = common global .struct.s0 zeroinitializer' %t
13 // RUN: grep '@y = common global .struct.s0 zeroinitializer' %t
22 // RUN: grep '@b = common global \[1 x .*\] zeroinitializer' %t
28 // Check that the most recent tentative definition wins.
29 // RUN: grep '@c = common global \[4 x .*\] zeroinitializer' %t
33 // Check that we emit static tentative definitions
34 // RUN: grep '@c5 = internal global \[1 x .*\] zeroinitializer' %t
36 static int func() { return c5
[0]; }
37 int callfunc() { return func(); }