diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-11 03:48:26 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-11 03:48:26 +0000 |
commit | 568e302a7fea4a349917308bd52d548ea595afe2 (patch) | |
tree | d0c96bbdacee389872e6c91e33e747f5ade0aa6a /clang/test/CodeGenCXX/member-function-pointers.cpp | |
parent | 8665c7e39d9b8922157d42b5701feb7e8d8c1ee5 (diff) | |
download | llvm-568e302a7fea4a349917308bd52d548ea595afe2.zip llvm-568e302a7fea4a349917308bd52d548ea595afe2.tar.gz llvm-568e302a7fea4a349917308bd52d548ea595afe2.tar.bz2 |
Fix some tests in -Asserts mode.
- FileCheck is a *huuuuge* improvement here.
- Still feels like we could use a better tool for this though, either teach
llvm-dis to spit out the FileCheck syntax, or provide another tool to turn a
.ll into a "matchable" input.
- Also on my Christmas list is better FileCheck diagnostics with missing
variables or mismatches.
llvm-svn: 86800
Diffstat (limited to 'clang/test/CodeGenCXX/member-function-pointers.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/member-function-pointers.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGenCXX/member-function-pointers.cpp b/clang/test/CodeGenCXX/member-function-pointers.cpp index a7c2113..7792560 100644 --- a/clang/test/CodeGenCXX/member-function-pointers.cpp +++ b/clang/test/CodeGenCXX/member-function-pointers.cpp @@ -30,8 +30,8 @@ void f() { // CHECK: volatile store i64 0, i64* getelementptr inbounds (%0* @vpa, i32 0, i32 1) vpa = 0; - // CHECK: store i64 %0, i64* getelementptr inbounds (%0* @pc, i32 0, i32 0) - // CHECK: [[ADJ:%[a-zA-Z0-9\.]+]] = add i64 %1, 16 + // CHECK: store i64 {{.*}}, i64* getelementptr inbounds (%0* @pc, i32 0, i32 0) + // CHECK: [[ADJ:%[a-zA-Z0-9\.]+]] = add i64 {{.*}}, 16 // CHECK: store i64 [[ADJ]], i64* getelementptr inbounds (%0* @pc, i32 0, i32 1) pc = pa; } @@ -46,7 +46,7 @@ void f2() { // CHECK: [[pa3ptr:%[a-zA-Z0-9\.]+]] = getelementptr inbounds %0* %pa3, i32 0, i32 0 // CHECK: store i64 1, i64* [[pa3ptr]] // CHECK: [[pa3adj:%[a-zA-Z0-9\.]+]] = getelementptr inbounds %0* %pa3, i32 0, i32 1 - // CHECK: store i64 0, i64* [[pa2adj]] + // CHECK: store i64 0, i64* [[pa3adj]] void (A::*pa3)() = &A::vf; } |