From: Cameron Esfahani Date: Wed, 15 Sep 2010 10:52:02 +0000 (+0000) Subject: Fix pointer-signext.c test case: it was relying on value names, which don't appear... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee0f984c0029d5bf4c57965fa7393ec2299df4ce;p=clang Fix pointer-signext.c test case: it was relying on value names, which don't appear in the non-assert build. Switch to using check-next as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113964 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/pointer-signext.c b/test/CodeGen/pointer-signext.c index e6bdbcc86e..23395a19cf 100644 --- a/test/CodeGen/pointer-signext.c +++ b/test/CodeGen/pointer-signext.c @@ -3,9 +3,9 @@ // Under Windows 64, int and long are 32-bits. Make sure pointer math doesn't // cause any sign extensions. -// CHECK: %sub.ptr.sub = add i64 %param, -8 -// CHECK: %0 = inttoptr i64 %sub.ptr.sub to %struct.anon* -// CHECK: %tmp3 = getelementptr inbounds %struct.anon* %0, i64 0, i32 0 +// CHECK: [[P:%.*]] = add i64 %param, -8 +// CHECK-NEXT: [[Q:%.*]] = inttoptr i64 [[P]] to [[R:%.*]] +// CHECK-NEXT: {{%.*}} = getelementptr inbounds [[R]] [[Q]], i64 0, i32 0 #define CR(Record, TYPE, Field) \ ((TYPE *) ((unsigned char *) (Record) - (unsigned char *) &(((TYPE *) 0)->Field)))