Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -c -emit-llvm %s -o - | \ |
Dan Gohman | 3c25077 | 2008-05-01 23:50:07 +0000 | [diff] [blame^] | 2 | // RUN: opt -std-compile-opts | llvm-dis | not grep {declare i32.*func} |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 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 | |
| 10 | static int func(); |
| 11 | void bar() { |
| 12 | int func(); |
| 13 | foo(func); |
| 14 | } |
| 15 | static int func(char** A, char ** B) {} |