1 // RUN: rm -rf %t && mkdir -p %t
2 // RUN: %clang_cc1 -fmodules -fblocks -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache/Fields -fdisable-module-hash -fapinotes-modules -fsyntax-only -I %S/Inputs/Headers -F %S/Inputs/Frameworks %s -x c++
3 // RUN: %clang_cc1 -fmodules -fblocks -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache/Fields -fdisable-module-hash -fapinotes-modules -I %S/Inputs/Headers -F %S/Inputs/Frameworks %s -ast-dump -ast-dump-filter IntWrapper::value -x c++ | FileCheck --check-prefix=CHECK-FIELD %s
4 // RUN: %clang_cc1 -fmodules -fblocks -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache/Fields -fdisable-module-hash -fapinotes-modules -I %S/Inputs/Headers -F %S/Inputs/Frameworks %s -ast-dump -ast-dump-filter Outer::Inner::value -x c++ | FileCheck --check-prefix=CHECK-DEEP-FIELD %s
8 // CHECK-FIELD: Dumping IntWrapper::value:
9 // CHECK-FIELD-NEXT: FieldDecl {{.+}} value
10 // CHECK-FIELD: UnavailableAttr {{.+}} <<invalid sloc>> "oh no"
12 // CHECK-DEEP-FIELD: Dumping Outer::Inner::value:
13 // CHECK-DEEP-FIELD-NEXT: FieldDecl {{.+}} value
14 // CHECK-DEEP-FIELD: UnavailableAttr {{.+}} <<invalid sloc>> "oh no 2"
16 // CHECK-FIELD-NOT: this should have no effect
17 // CHECK-DEEP-FIELD-NOT: this should have no effect