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