new testcase
[oota-llvm.git] / test / CFrontend / 2004-11-27-StaticFunctionRedeclare.c
1 // 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
9 static int func();
10 void bar() {
11   int func();
12   foo(func);
13 }
14 static int func(char** A, char ** B) {}