| 1 |
// RUN: rm -rf %t && mkdir -p %t |
| 2 |
// RUN: %clang_cc1 -fmodules -fblocks -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache/Tmpl -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/Tmpl -fdisable-module-hash -fapinotes-modules -I %S/Inputs/Headers -F %S/Inputs/Frameworks %s -ast-dump -ast-dump-filter Box -x c++ | FileCheck -check-prefix=CHECK-BOX %s |
| 4 |
// RUN: %clang_cc1 -fmodules -fblocks -fimplicit-module-maps -fmodules-cache-path=%t/ModulesCache/Tmpl -fdisable-module-hash -fapinotes-modules -I %S/Inputs/Headers -F %S/Inputs/Frameworks %s -ast-dump -ast-dump-filter MoveOnly -x c++ | FileCheck -check-prefix=CHECK-MOVEONLY %s |
| 5 |
|
| 6 |
#include "Templates.h" |
| 7 |
|
| 8 |
// CHECK-BOX: Dumping Box: |
| 9 |
// CHECK-BOX-NEXT: ClassTemplateDecl {{.+}} imported in Templates Box |
| 10 |
// CHECK-BOX: SwiftAttrAttr {{.+}} <<invalid sloc>> "import_owned" |
| 11 |
|
| 12 |
// Make sure the attributes aren't duplicated. |
| 13 |
// CHECK-BOX-NOT: SwiftAttrAttr {{.+}} <<invalid sloc>> "import_owned" |
| 14 |
|
| 15 |
// CHECK-MOVEONLY: Dumping MoveOnly: |
| 16 |
// CHECK-MOVEONLY-NEXT: ClassTemplateDecl {{.+}} imported in Templates MoveOnly |
| 17 |
// CHECK-MOVEONLY: SwiftAttrAttr {{.+}} <<invalid sloc>> "~Copyable" |
| 18 |
|
| 19 |
// Make sure the attributes aren't duplicated. |
| 20 |
// CHECK-MOVEONLY-NOT: SwiftAttrAttr {{.+}} <<invalid sloc>> "~Copyable" |
| 21 |
|
| 22 |
// CHECK-MOVEONLY: ClassTemplateSpecializationDecl {{.+}} imported in Templates {{.+}} MoveOnly |
| 23 |
// CHECK-MOVEONLY: TemplateArgument type 'int' |
| 24 |
// CHECK-MOVEONLY: SwiftAttrAttr {{.+}} <<invalid sloc>> "~Copyable" |
| 25 |
|
| 26 |
// Make sure the attributes aren't duplicated. |
| 27 |
// CHECK-MOVEONLY-NOT: SwiftAttrAttr {{.+}} <<invalid sloc>> "~Copyable" |
| 28 |
|
| 29 |
// CHECK-MOVEONLY: ClassTemplateSpecializationDecl {{.+}} imported in Templates {{.+}} MoveOnly |
| 30 |
// CHECK-MOVEONLY: TemplateArgument type 'float' |
| 31 |
// CHECK-MOVEONLY: SwiftAttrAttr {{.+}} <<invalid sloc>> "~Copyable" |
| 32 |
|
| 33 |
// Make sure the attributes aren't duplicated. |
| 34 |
// CHECK-MOVEONLY-NOT: SwiftAttrAttr {{.+}} <<invalid sloc>> "~Copyable" |