llvm.org GIT mirror llvm / 8946fe1
Call the correct function name. Patch from Stephane Letz. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37614 91177308-0d34-0410-b5e6-96231b3b80d8 Nick Lewycky 12 years ago
2 changed file(s) with 8 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llvm2cpp -funcname=WAKKA | not grep makeLLVMModule
1 ; PR1515
2
3 define void @foo() {
4 ret void
5 }
6
16891689 Out << "using namespace llvm;\n\n";
16901690 Out << "Module* " << fname << "();\n\n";
16911691 Out << "int main(int argc, char**argv) {\n";
1692 Out << " Module* Mod = makeLLVMModule();\n";
1692 Out << " Module* Mod = " << fname << "();\n";
16931693 Out << " verifyModule(*Mod, PrintMessageAction);\n";
16941694 Out << " std::cerr.flush();\n";
16951695 Out << " std::cout.flush();\n";