Mercurial > hg > CbC > CbC_llvm
diff test/Other/2002-01-31-CallGraph.ll @ 0:95c75e76d11b LLVM3.4
LLVM 3.4
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 13:56:28 +0900 |
parents | |
children | 803732b1fca8 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/Other/2002-01-31-CallGraph.ll Thu Dec 12 13:56:28 2013 +0900 @@ -0,0 +1,13 @@ +; Call graph construction crash: Not handling indirect calls right +; +; RUN: opt < %s -analyze -print-callgraph >& /dev/null +; + + %FunTy = type i32 (i32) + +define void @invoke(%FunTy* %x) { + %foo = call i32 %x( i32 123 ) ; <i32> [#uses=0] + ret void +} + +