When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / FrontendC / 2004-11-27-StaticFunctionRedeclare.c
blob994ac8f8436f503766e5e946855caa6e7bc146e1
1 // RUN: %llvmgcc -S %s -o - | \
2 // RUN: opt -std-compile-opts -S | not grep {declare i32.*func}
4 // There should not be an unresolved reference to func here. Believe it or not,
5 // the "expected result" is a function named 'func' which is internal and
6 // referenced by bar().
8 // This is PR244
10 static int func();
11 void bar() {
12 int func();
13 foo(func);
15 static int func(char** A, char ** B) {}