mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
FileCheck-ize these tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155433 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
; RUN: opt < %s -print-callgraph -disable-output |& \
|
; RUN: opt < %s -print-callgraph -disable-output |& FileCheck %s
|
||||||
; RUN: grep {calls function 'callee'} | count 2
|
|
||||||
|
; 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(...) {
|
define internal void @callee(...) {
|
||||||
entry:
|
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]
|
@a = global void ()* @f ; <void ()**> [#uses=0]
|
||||||
|
|
||||||
|
; CHECK: calls function 'f'
|
||||||
|
|
||||||
define internal void @f() {
|
define internal void @f() {
|
||||||
unreachable
|
unreachable
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user