1 // RUN: %clang_cc1 -emit-llvm -triple i386-linux-gnu -o %t %s
2 // RUN: FileCheck --input-file=%t %s
4 // CHECK: @test1_f = extern_weak global i32
6 static int test1_g
__attribute__((weakref("test1_f")));
11 // CHECK: @test2_f = global i32 0, align 4
13 static int test2_g
__attribute__((weakref("test2_f")));
18 // CHECK: @test3_f = external global i32
20 static int test3_g
__attribute__((weakref("test3_f")));
28 // CHECK: @test4_f = global i32 0, align 4
30 static int test4_g
__attribute__((weakref("test4_f")));
36 // CHECK: @test5_f = external global i32
38 static int test5_g
__attribute__((weakref("test5_f")));
46 // CHECK: @test6_f = extern_weak global i32
47 extern int test6_f
__attribute__((weak
));
48 static int test6_g
__attribute__((weakref("test6_f")));