blob: abc6fbbff67646c43656cf5d73a74984adeb4de8 [file] [log] [blame]
Chris Lattner393db9d2004-11-28 00:06:07 +00001// RUN: %llvmgcc -S 2004-11-27-StaticFunctionRedeclare.c -o - | gccas | llvm-dis | not grep 'declare int.*func'
2
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().
6
7// This is PR244
8
9static int func();
10void bar() {
11 int func();
12 foo(func);
13}
14static int func(char** A, char ** B) {}