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.
17 lines
523 B
C++
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;
|