brintos

brintos / llvm-project-archived public Read only

0
0
Text · 362 B · cca1d41 Raw
20 lines · c
1// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s2 3// CHECK: @test2_i = internal global i32 994static int test2_i = 99;5int test2_f(void) {6  extern int test2_i;7  return test2_i;8}9 10// C99 6.2.2p311// PR342512static void f(int x);13 14void g0(void) {15  f(5);16}17 18extern void f(int x) { } // still has internal linkage19// CHECK-LABEL: define internal {{.*}}void @f20