[clang-tidy][use-internal-linkage]fix false positives for global overloaded operator...
[llvm-project.git] / clang / test / CodeGenCXX / member-data-pointers.cpp
blob8b4e8d279707254f083baaf5f76701d8aa210aed
1 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=x86_64-unknown-unknown | FileCheck -check-prefix GLOBAL-LP64 %s
2 // RUN: %clang_cc1 %s -emit-llvm -o - -triple=armv7-unknown-unknown | FileCheck -check-prefix GLOBAL-LP32 %s
4 struct A;
5 typedef int A::*param_t;
6 struct {
7 const char *name;
8 param_t par;
9 } ptr;
10 void test_ptr() { (void) ptr; } // forced use
12 // GLOBAL-LP64: type { ptr, i64 }
13 // GLOBAL-LP32: type { ptr, i32 }