diff options
author | Anders Carlsson <andersca@mac.com> | 2010-02-02 03:23:38 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-02-02 03:23:38 +0000 |
commit | fe40456f0c0060097564cecaf7faada39185463a (patch) | |
tree | c567e2ccf10c2e056dca6a937e7fffcd32eba7f4 | |
parent | 0519fe2e11ae60d297b50f5497761045783f79c7 (diff) |
Rename a test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95060 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGenCXX/pointers-to-data-members.cpp (renamed from test/CodeGenCXX/member-pointer-cast.cpp) | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/test/CodeGenCXX/member-pointer-cast.cpp b/test/CodeGenCXX/pointers-to-data-members.cpp index 4937b037de..567e3f3740 100644 --- a/test/CodeGenCXX/member-pointer-cast.cpp +++ b/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); } + +} |