1 // Test that adding a new unused decl within reduced BMI may not produce a transitive change.
4 // RUN: split-file %s %t
6 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/A.cppm -o %t/A.pcm
7 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/B.cppm -o %t/B.pcm \
8 // RUN: -fmodule-file=A=%t/A.pcm
10 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/A.v1.cppm -o %t/A.v1.pcm
11 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/B.cppm -o %t/B.v1.pcm \
12 // RUN: -fmodule-file=A=%t/A.v1.pcm
14 // RUN: diff %t/B.pcm %t/B.v1.pcm &> /dev/null
18 export int a() { return 44; }
22 int a_impl() { return 48; }
23 export int a() { return a_impl(); }
28 export int b() { return a(); }