X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FVerifier%2Fbitcast-address-space-through-gep-2.ll;h=2ee394206aef9a2a6f1ec08c8a83e055284f7f8d;hb=bd2c711cddceb95ab2dc0c28b40760372cb66178;hp=3b77d9a3022338fa5ce293210abbaab3acefc263;hpb=16e4ed5879da57502ea3686c79c63f86994fbe75;p=oota-llvm.git diff --git a/test/Verifier/bitcast-address-space-through-gep-2.ll b/test/Verifier/bitcast-address-space-through-gep-2.ll index 3b77d9a3022..2ee394206ae 100644 --- a/test/Verifier/bitcast-address-space-through-gep-2.ll +++ b/test/Verifier/bitcast-address-space-through-gep-2.ll @@ -1,4 +1,6 @@ -; RUN: not llvm-as -verify -disable-output %s +; RUN: not llvm-as -disable-output %s 2>&1 | FileCheck %s + +; CHECK: error: invalid cast opcode for cast from 'i32 addrspace(2)*' to 'i32 addrspace(3)*' target datalayout = "e-p:32:32:32-p1:16:16:16-p2:8:8:8-p3:8:8:8-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n8:16:32"