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