brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1010 B · 5318aeb Raw
23 lines · cpp
1// REQUIRES: zlib || zstd2//3// RUN: rm -rf %t4// RUN: mkdir %t5// RUN: echo '//////////////////////////////////////////////////////////////////////' > %t/a.h6// RUN: cat %t/a.h %t/a.h %t/a.h %t/a.h > %t/b.h7// RUN: cat %t/b.h %t/b.h %t/b.h %t/b.h > %t/a.h8// RUN: cat %t/a.h %t/a.h %t/a.h %t/a.h > %t/b.h9// RUN: cat %t/b.h %t/b.h %t/b.h %t/b.h > %t/a.h10// RUN: cat %t/a.h %t/a.h %t/a.h %t/a.h > %t/b.h11// RUN: cat %t/b.h %t/b.h %t/b.h %t/b.h > %t/a.h12// RUN: cat %t/a.h %t/a.h %t/a.h %t/a.h > %t/b.h13// RUN: cat %t/b.h %t/b.h %t/b.h %t/b.h > %t/a.h14// RUN: echo 'module a { header "a.h" }' > %t/modulemap15//16// RUN: %clang_cc1 -fmodules -I%t -fmodules-cache-path=%t -fmodule-name=a -emit-module %t/modulemap -fmodules-embed-all-files -o %t/a.pcm17//18// The above embeds ~4.5MB of highly-predictable /s and \ns into the pcm file.19// Check that the resulting file is under 80KB:20//21// RUN: wc -c %t/a.pcm | FileCheck --check-prefix=CHECK-SIZE %s22// CHECK-SIZE: {{(^|[^0-9])[1-7][0-9][0-9][0-9][0-9]($|[^0-9])}}23