Bruno Ricci | f63e3ea | 2020-07-06 21:50:23 +0100 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -triple x86_64-unknown-unknown -Wno-unused-value -std=gnu++17 \ |
| 2 | // RUN: -ast-dump %s -ast-dump-filter Test \ |
| 3 | // RUN: | FileCheck --strict-whitespace --match-full-lines %s |
| 4 | |
| 5 | int i; |
| 6 | struct S { |
| 7 | int i; |
| 8 | }; |
| 9 | |
| 10 | void Test() { |
| 11 | constexpr int *pi = &i; |
| 12 | // CHECK: | `-VarDecl {{.*}} <col:{{.*}}, col:{{.*}}> col:{{.*}} pi 'int *const' constexpr cinit |
| 13 | // CHECK-NEXT: | |-value: LValue <todo> |
| 14 | |
| 15 | constexpr int(S::*pmi) = &S::i; |
| 16 | // CHECK: `-VarDecl {{.*}} <col:{{.*}}, col:{{.*}}> col:{{.*}} pmi 'int (S::*const)' constexpr cinit |
| 17 | // CHECK-NEXT: |-value: MemberPointer <todo> |
| 18 | } |