2 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 -I %t %t/A.cppm -emit-module-interface -o %t/A.pcm -verify
6 // RUN: %clang_cc1 -std=c++20 -I %t %t/B.cpp -fmodule-file=A=%t/A.pcm -fsyntax-only -verify -ast-dump-all -ast-dump-filter baz | FileCheck %s
15 // expected-no-diagnostics
21 // expected-no-diagnostics
24 // Since modules are loaded lazily, force loading by performing a lookup.
27 // CHECK-LABEL: Dumping baz:
28 // CHECK-NEXT: NamespaceDecl 0x[[BAZ_REDECL_ADDR:[^ ]*]] prev 0x[[BAZ_ADDR:[^ ]*]]
29 // CHECK: TypeAliasDecl 0x[[ALIAS_REDECL_ADDR:[^ ]*]] prev 0x[[ALIAS_ADDR:[^ ]*]]
30 // FIXME: UsingShadowDecl should have been merged
31 // CHECK: UsingShadowDecl 0x{{[^ ]*}} prev 0x[[SHADOW_ADDR:[^ ]*]] {{.*}} imported in A.<global> {{.*}} 'foo'
33 // CHECK-LABEL: Dumping baz:
34 // CHECK-NEXT: NamespaceDecl 0x[[BAZ_ADDR]] <{{.*}}> line:{{.*}} baz
35 // CHECK: UsingShadowDecl 0x[[SHADOW_ADDR]] {{.*}} 'foo'