| 1 |
// RUN: rm -rf %t |
| 2 |
// RUN: %clang_cc1 -fmodules -triple x86_64-pc-windows-msvc -I%S/Inputs/inherit-attribute -fmodules-cache-path=%t \ |
| 3 |
// RUN: -fimplicit-module-maps -fmodules-local-submodule-visibility %s -ast-dump-all \ |
| 4 |
// RUN: | FileCheck %s |
| 5 |
|
| 6 |
#include "b.h" |
| 7 |
#include "c.h" |
| 8 |
|
| 9 |
class Foo; |
| 10 |
|
| 11 |
Foo f; |
| 12 |
|
| 13 |
// CHECK: CXXRecordDecl {{.*}} imported in b {{.*}} Foo |
| 14 |
// CHECK: MSInheritanceAttr {{[^()]*$}} |
| 15 |
|
| 16 |
// CHECK: CXXRecordDecl {{.*}} prev {{.*}} imported in c {{.*}} Foo |
| 17 |
// CHECK: MSInheritanceAttr {{.*}} Inherited {{[^()]*$}} |
| 18 |
|
| 19 |
// CHECK: CXXRecordDecl {{.*}} <line:9:1, col:7> col:7 referenced class Foo |
| 20 |
// CHECK: MSInheritanceAttr {{.*}} Inherited {{[^()]*$}} |