diff --git a/test/Transforms/FunctionResolve/2003-07-23-CPR-Reference.ll b/test/Transforms/FunctionResolve/2003-07-23-CPR-Reference.ll new file mode 100644 index 00000000000..b9d561a7ef4 --- /dev/null +++ b/test/Transforms/FunctionResolve/2003-07-23-CPR-Reference.ll @@ -0,0 +1,10 @@ +; RUN: as < %s | opt -funcresolve | dis | not grep foo + +; The funcresolve pass was resolving the two foo's together in this test, +; adding a ConstantPointerRef to one of them. Then because of this +; reference, it wasn't able to delete the dead declaration. :( + +declare int %foo(...) +declare int %foo(int) + +