Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / 2004-11-27-StaticFunctionRedeclare.c
blob0650c744e46c4f72b798d3df14907e2b4627fd0c
1 // RUN: %clang_cc1 -std=c89 -emit-llvm %s -o - | FileCheck %s
3 // There should not be an unresolved reference to func here. Believe it or not,
4 // the "expected result" is a function named 'func' which is internal and
5 // referenced by bar().
7 // This is PR244
9 // CHECK-LABEL: define {{.*}}void @bar(
10 // CHECK: call {{.*}} @func
11 // CHECK: define internal {{.*}}i32 @func(
12 static int func();
13 void bar(void) {
14 int func(void);
15 foo(func);
17 static int func(char** A, char ** B) {}