brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 8dea222 Raw
18 lines · cpp
1// RUN: rm -rf %t && mkdir -p %t2// 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 %s4// 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 %s5 6#include "Fields.h"7 8// CHECK-FIELD: Dumping IntWrapper::value:9// CHECK-FIELD-NEXT: FieldDecl {{.+}} value10// CHECK-FIELD: UnavailableAttr {{.+}} <<invalid sloc>> "oh no"11 12// CHECK-DEEP-FIELD: Dumping Outer::Inner::value:13// CHECK-DEEP-FIELD-NEXT: FieldDecl {{.+}} value14// CHECK-DEEP-FIELD: UnavailableAttr {{.+}} <<invalid sloc>> "oh no 2"15 16// CHECK-FIELD-NOT: this should have no effect17// CHECK-DEEP-FIELD-NOT: this should have no effect18