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
14 // Test again with reduced BMI
17 // RUN: split-file %s %t
19 // RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-reduced-module-interface -o %t/a.pcm
20 // RUN: %clang_cc1 -std=c++20 %t/b.cppm -emit-reduced-module-interface -o %t/b.pcm \
21 // RUN: -fprebuilt-module-path=%t
22 // RUN: %clang_cc1 -std=c++20 %t/c.cppm -emit-reduced-module-interface -o %t/c.pcm \
23 // RUN: -fprebuilt-module-path=%t
24 // RUN: %clang_cc1 -std=c++20 %t/d.cppm -emit-reduced-module-interface -o %t/d.pcm \
25 // RUN: -fprebuilt-module-path=%t
26 // RUN: %clang_cc1 -std=c++20 %t/e.cpp -fsyntax-only -verify -fprebuilt-module-path=%t
36 export template <typename T>
48 export template <typename T>
52 AnySpan(Getter<T> getter)
63 export inline void RegisterInt322(
64 AnySpan<const int> sibling_field_nums) {
65 sibling_field_nums = sibling_field_nums;
69 // expected-no-diagnostics
74 export inline void RegisterInt32(
75 AnySpan<const int> sibling_field_nums = {}) {
76 sibling_field_nums = sibling_field_nums;
83 // expected-no-diagnostics
84 void foo(AnySpan<const int> s) {
85 s = AnySpan<const int>(s);