blob: 58993f349f816581bcbf5c35095abdacba9fac08 [file] [log] [blame]
Rafael Espindola0db661e2012-12-21 01:21:33 +00001// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2
3// CHECK: @test2_i = internal global i32 99
4static int test2_i = 99;
5int test2_f() {
6 extern int test2_i;
7 return test2_i;
8}
Douglas Gregor04495c82009-02-24 01:23:02 +00009
10// C99 6.2.2p3
11// PR3425
12static void f(int x);
13
14void g0() {
15 f(5);
16}
17
18extern void f(int x) { } // still has internal linkage
Stephen Lin93ab6bf2013-08-15 06:47:53 +000019// CHECK-LABEL: define internal void @f