summaryrefslogtreecommitdiff
path: root/test/Verifier
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-26 08:25:06 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-26 08:25:06 +0000
commite3ff5ada8a8f6cc166ecc45147da0d63c3683026 (patch)
treeccd4a6b0d605384b41f7d3b84cc019344c2dd65a /test/Verifier
parent950bf6030101d670ea205efd307ea5d3b375544d (diff)
For PR761:
Remove "target endian/pointersize" or add "target datalayout" to make the test parse properly or set the datalayout because defaults changes. For PR645: Make global names use the @ prefix. For llvm-upgrade changes: Fix test cases or completely remove use of llvm-upgrade for test cases that cannot survive the new renaming or upgrade capabilities. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Verifier')
-rw-r--r--test/Verifier/2006-10-15-AddrLabel.ll11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/Verifier/2006-10-15-AddrLabel.ll b/test/Verifier/2006-10-15-AddrLabel.ll
index 40bd2e83b0..fb9acf19e0 100644
--- a/test/Verifier/2006-10-15-AddrLabel.ll
+++ b/test/Verifier/2006-10-15-AddrLabel.ll
@@ -1,9 +1,10 @@
-; RUN: llvm-upgrade %s | not llvm-as -o /dev/null -f &&
-; RUN: llvm-upgrade %s | llvm-as -o /dev/null -f 2>&1 | grep 'Cannot form'
+; RUN: not llvm-as 2>&1 < %s > /dev/null &&
+; RUN: llvm-as 2>&1 < %s > /dev/null | \
+; RUN: grep 'Cannot form a pointer to a basic block'
-int %main() {
- %foo = call sbyte* %llvm.stacksave()
- %foop = cast sbyte* %foo to label*
+define i32 @main() {
+ %foo = call i8* %llvm.stacksave()
+ %foop = bitcast i8* %foo to label*
%nret = load label* %foop
br label %nret;
}