1885e78cbSChandler Carruth// RUN: rm -rf %t 2885e78cbSChandler Carruth// 3885e78cbSChandler Carruth// RUN: %clang_cc1 -fmodules -x c++ -fmodules-cache-path=%t \ 447972afdSRichard Smith// RUN: -fno-implicit-modules \ 5885e78cbSChandler Carruth// RUN: -emit-module -fmodule-name=empty -o %t/base.pcm \ 6885e78cbSChandler Carruth// RUN: %s 7885e78cbSChandler Carruth// 8885e78cbSChandler Carruth// RUN: %clang_cc1 -fmodules -x c++ -fmodules-cache-path=%t \ 947972afdSRichard Smith// RUN: -fno-implicit-modules \ 10885e78cbSChandler Carruth// RUN: -emit-module -fmodule-name=empty -o %t/check.pcm \ 11885e78cbSChandler Carruth// RUN: %s 12885e78cbSChandler Carruth// 139c254184SRichard Smith// The module file should be identical each time we produce it. 14885e78cbSChandler Carruth// RUN: diff %t/base.pcm %t/check.pcm 159c254184SRichard Smith// 16*a06b2cb0SSander de Smalen// We expect an empty module to be less than 40KB (and at least 10K, for now). 179c254184SRichard Smith// RUN: wc -c %t/base.pcm | FileCheck --check-prefix=CHECK-SIZE %s 18*a06b2cb0SSander de Smalen// CHECK-SIZE: {{(^|[^0-9])[123][0-9][0-9][0-9][0-9]($|[^0-9])}} 19885e78cbSChandler Carruth 20885e78cbSChandler Carruthmodule empty { header "Inputs/empty.h" export * } 21