Files
clang-p2996/clang/test/Modules/reduced-bmi-size.cppm
Chuanqi Xu ed1cfffe9b [NFC] [C++20] [Modules] [Reduced BMI] Make sure the size of reduced BMI is not large than full BMI
Before this patch, the size of the reduced BMI may be large than the
full BMI when the source codes is pretty small. This violates the design
principles. The root cause is an oversight that we skipped something
in full BMI but forgot to make it in reduced BMI.
2024-04-03 10:51:42 +08:00

17 lines
523 B
C++

// Ensure that the size of the reduced BMI is not larger than the full BMI
// in the most simple case.
// This test requires linux commands.
// REQUIRES: system-linux
// RUN: rm -fr %t
// RUN: mkdir %t
//
// RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -o %t/a.pcm
// RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %s -o %t/a.reduced.pcm
//
// %s implies the current source file. So we can't use it directly.
// RUN: [ $(stat -c%\s "%t/a.pcm") -le $(stat -c%\s "%t/a.reduced.pcm") ]
export module a;