xref: /aosp_15_r20/external/clang/test/CodeGenCXX/member-data-pointers.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-unknown-unknown | FileCheck -check-prefix GLOBAL-LP64 %s
2*67e74705SXin Li // RUN: %clang_cc1 %s -emit-llvm -o - -triple=armv7-unknown-unknown | FileCheck -check-prefix GLOBAL-LP32 %s
3*67e74705SXin Li 
4*67e74705SXin Li struct A;
5*67e74705SXin Li typedef int A::*param_t;
6*67e74705SXin Li struct {
7*67e74705SXin Li   const char *name;
8*67e74705SXin Li   param_t par;
9*67e74705SXin Li } *ptr;
test_ptr()10*67e74705SXin Li void test_ptr() { (void) ptr; } // forced use
11*67e74705SXin Li 
12*67e74705SXin Li // GLOBAL-LP64: type { i8*, i64 }
13*67e74705SXin Li // GLOBAL-LP32: type { i8*, i32 }
14