aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/member-data-pointers.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2012-05-01 17:32:20 +0000
committerJohn McCall <rjmccall@apple.com>2012-05-01 17:32:20 +0000
commit2a7b09db93ed57f97cc9d9e7ec1b1d11934d0841 (patch)
tree59ffb2b92d6249413c294805ec2bdd0751ebdce8 /test/CodeGenCXX/member-data-pointers.cpp
parentbfd7a525bcf372004787cb641b8c1566b9e8aba5 (diff)
Restructure some of the member-pointer tests, implicitly
removing some that were added without a triple (and moving their tests into files that appropriately test multiple architectures). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155920 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/member-data-pointers.cpp')
-rw-r--r--test/CodeGenCXX/member-data-pointers.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGenCXX/member-data-pointers.cpp b/test/CodeGenCXX/member-data-pointers.cpp
new file mode 100644
index 0000000000..d3473668a7
--- /dev/null
+++ b/test/CodeGenCXX/member-data-pointers.cpp
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-unknown-unknown | FileCheck -check-prefix GLOBAL-LP64 %s
+// RUN: %clang_cc1 %s -emit-llvm -o - -triple=armv7-unknown-unknown | FileCheck -check-prefix GLOBAL-LP32 %s
+
+struct A;
+typedef int A::*param_t;
+struct {
+ const char *name;
+ param_t par;
+} *ptr;
+void test_ptr() { (void) ptr; } // forced use
+
+// GLOBAL-LP64: type { i8*, i64 }
+// GLOBAL-LP32: type { i8*, i32 }