3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-module-interface -o %t/a.pcm
6 // RUN: %clang_cc1 -std=c++20 %t/b.cppm -emit-module-interface -o %t/b.pcm \
7 // RUN: -fprebuilt-module-path=%t
8 // RUN: %clang_cc1 -std=c++20 %t/c.cppm -emit-module-interface -o %t/c.pcm \
9 // RUN: -fprebuilt-module-path=%t
10 // RUN: %clang_cc1 -std=c++20 %t/d.cppm -emit-module-interface -o %t/d.pcm \
11 // RUN: -fprebuilt-module-path=%t
12 // RUN: %clang_cc1 -std=c++20 %t/e.cpp -fsyntax-only -verify -fprebuilt-module-path=%t
21 export template <typename T>
33 export template <typename T>
37 AnySpan(Getter<T> getter)
48 export inline void RegisterInt322(
49 AnySpan<const int> sibling_field_nums) {
50 sibling_field_nums = sibling_field_nums;
54 // expected-no-diagnostics
59 export inline void RegisterInt32(
60 AnySpan<const int> sibling_field_nums = {}) {
61 sibling_field_nums = sibling_field_nums;
68 // expected-no-diagnostics
69 void foo(AnySpan<const int> s) {
70 s = AnySpan<const int>(s);