diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-04-24 10:36:42 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-04-24 10:36:42 +0000 |
commit | c6490d138fdff749a423da104f2d29cd41450802 (patch) | |
tree | d434bb8a97e9a972d167ea35dcb444391cac283e | |
parent | d5cc8b81ca5d0a09a1da7f8b094907eb63a582e6 (diff) | |
download | external_llvm-c6490d138fdff749a423da104f2d29cd41450802.zip external_llvm-c6490d138fdff749a423da104f2d29cd41450802.tar.gz external_llvm-c6490d138fdff749a423da104f2d29cd41450802.tar.bz2 |
FileCheck-ize these tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155433 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Analysis/CallGraph/2008-09-09-DirectCall.ll | 8 | ||||
-rw-r--r-- | test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/test/Analysis/CallGraph/2008-09-09-DirectCall.ll b/test/Analysis/CallGraph/2008-09-09-DirectCall.ll index 784d6c7..55d0be6 100644 --- a/test/Analysis/CallGraph/2008-09-09-DirectCall.ll +++ b/test/Analysis/CallGraph/2008-09-09-DirectCall.ll @@ -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: diff --git a/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll b/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll index 0c5ef92..632cd0c7 100644 --- a/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll +++ b/test/Analysis/CallGraph/2008-09-09-UsedByGlobal.ll @@ -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 } |