[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Import / cxx-member-pointers / test.cpp
blob253c90bdcf7e43b1abfe3f43d5a5f1609f47065c
1 // RUN: clang-import-test -dump-ast -import %S/Inputs/S.cpp -expression %s | FileCheck %s
3 // CHECK: VarDecl
4 // CHECK-SAME: int S::*
5 // CHECK-NEXT: CallExpr
6 // CHECK-NEXT: ImplicitCastExpr
7 // CHECK-SAME: int S::*(*)()
8 // CHECK-NEXT: DeclRefExpr
9 // CHECK-SAME: int S::*()
11 void expr() {
12 int S::*p = iptr();
13 S s;
14 s.i = 3;
15 int i = s.*p;