blob: ef121224253278c2d07a93e8d0ddea9fe3fdb3e6 [file] [log] [blame]
Duncan Sands0829a302007-04-16 16:06:17 +00001// RUN: %llvmgcc -c -emit-llvm %s -o - | \
Reid Spencerdcb925e2007-04-15 20:08:37 +00002// RUN: opt -std-compile-opts | llvm-dis | not grep {declare int.*func}
Chris Lattner393db9d2004-11-28 00:06:07 +00003
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().
7
8// This is PR244
9
10static int func();
11void bar() {
12 int func();
13 foo(func);
14}
15static int func(char** A, char ** B) {}