blob: 55efa86865de47c94c9e92702799e22e15f3917c [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 -emit-llvm %s -o - | \
2// RUN: opt -std-compile-opts -emit-llvm | not grep {declare i32.*func}
3
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) {}