mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +00:00
FileCheck-ize these tests.
llvm-svn: 155433
This commit is contained in:
parent
b394f59f17
commit
6824095c62
@ -1,5 +1,9 @@
|
||||
; RUN: opt < %s -print-callgraph -disable-output |& \
|
||||
; RUN: grep {calls function 'callee'} | count 2
|
||||
; RUN: opt < %s -print-callgraph -disable-output |& FileCheck %s
|
||||
|
||||
; CHECK: Call graph node <<null function>>
|
||||
; CHECK: CS<{{.*}}> calls function 'callee'
|
||||
; CHECK: Call graph node for function: 'caller'
|
||||
; CHECK: CS<{{.*}}> calls function 'callee'
|
||||
|
||||
define internal void @callee(...) {
|
||||
entry:
|
||||
|
@ -1,7 +1,9 @@
|
||||
; RUN: opt < %s -print-callgraph -disable-output |& grep {calls function}
|
||||
; RUN: opt < %s -print-callgraph -disable-output |& FileCheck %s
|
||||
|
||||
@a = global void ()* @f ; <void ()**> [#uses=0]
|
||||
|
||||
; CHECK: calls function 'f'
|
||||
|
||||
define internal void @f() {
|
||||
unreachable
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user