Rename a test.
llvm-svn: 95060
diff --git a/clang/test/CodeGenCXX/member-pointer-cast.cpp b/clang/test/CodeGenCXX/pointers-to-data-members.cpp
similarity index 62%
rename from clang/test/CodeGenCXX/member-pointer-cast.cpp
rename to clang/test/CodeGenCXX/pointers-to-data-members.cpp
index 4937b03..567e3f3 100644
--- a/clang/test/CodeGenCXX/member-pointer-cast.cpp
+++ b/clang/test/CodeGenCXX/pointers-to-data-members.cpp
@@ -1,21 +1,26 @@
-// RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-apple-darwin9 | FileCheck %s
+// RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-apple-darwin10 | FileCheck %s
struct A { int a; };
struct B { int b; };
struct C : B, A { };
+// Casts.
+namespace Casts {
+
int A::*pa;
int C::*pc;
void f() {
- // CHECK: store i64 -1, i64* @pa
+ // CHECK: store i64 -1, i64* @_ZN5Casts2paE
pa = 0;
// CHECK: [[ADJ:%[a-zA-Z0-9\.]+]] = add i64 {{.*}}, 4
- // CHECK: store i64 [[ADJ]], i64* @pc
+ // CHECK: store i64 [[ADJ]], i64* @_ZN5Casts2pcE
pc = pa;
// CHECK: [[ADJ:%[a-zA-Z0-9\.]+]] = sub i64 {{.*}}, 4
- // CHECK: store i64 [[ADJ]], i64* @pa
+ // CHECK: store i64 [[ADJ]], i64* @_ZN5Casts2paE
pa = static_cast<int A::*>(pc);
}
+
+}