18 lines · c
1// RUN: %clang_cc1 -std=c89 -emit-llvm %s -o - | FileCheck %s2 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 and5// referenced by bar().6 7// This is PR2448 9// CHECK-LABEL: define {{.*}}void @bar(10// CHECK: call {{.*}} @func11// CHECK: define internal {{.*}}i32 @func(12static int func();13void bar(void) {14 int func(void);15 foo(func);16}17static int func(char** A, char ** B) { return 0; }18