1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc // There should not be an unresolved reference to func here. Believe it or not, 4*f4a2713aSLionel Sambuc // the "expected result" is a function named 'func' which is internal and 5*f4a2713aSLionel Sambuc // referenced by bar(). 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc // This is PR244 8*f4a2713aSLionel Sambuc 9*f4a2713aSLionel Sambuc // CHECK-LABEL: define void @bar( 10*f4a2713aSLionel Sambuc // CHECK: call {{.*}} @func 11*f4a2713aSLionel Sambuc // CHECK: define internal {{.*}}i32 @func( 12*f4a2713aSLionel Sambuc static int func(); bar()13*f4a2713aSLionel Sambucvoid bar() { 14*f4a2713aSLionel Sambuc int func(); 15*f4a2713aSLionel Sambuc foo(func); 16*f4a2713aSLionel Sambuc } func(char ** A,char ** B)17*f4a2713aSLionel Sambucstatic int func(char** A, char ** B) {} 18