1*67e74705SXin Li// RUN: rm -rf %t 2*67e74705SXin Li// 3*67e74705SXin Li// RUN: %clang_cc1 -fmodules -x c++ -fmodules-cache-path=%t \ 4*67e74705SXin Li// RUN: -fno-implicit-modules \ 5*67e74705SXin Li// RUN: -emit-module -fmodule-name=empty -o %t/base.pcm \ 6*67e74705SXin Li// RUN: %s 7*67e74705SXin Li// 8*67e74705SXin Li// RUN: %clang_cc1 -fmodules -x c++ -fmodules-cache-path=%t \ 9*67e74705SXin Li// RUN: -fno-implicit-modules \ 10*67e74705SXin Li// RUN: -emit-module -fmodule-name=empty -o %t/check.pcm \ 11*67e74705SXin Li// RUN: %s 12*67e74705SXin Li// 13*67e74705SXin Li// The module file should be identical each time we produce it. 14*67e74705SXin Li// RUN: diff %t/base.pcm %t/check.pcm 15*67e74705SXin Li// 16*67e74705SXin Li// We expect an empty module to be less than 30KB (and at least 10K, for now). 17*67e74705SXin Li// REQUIRES: shell 18*67e74705SXin Li// RUN: wc -c %t/base.pcm | FileCheck --check-prefix=CHECK-SIZE %s 19*67e74705SXin Li// CHECK-SIZE: {{(^|[^0-9])[12][0-9][0-9][0-9][0-9]($|[^0-9])}} 20*67e74705SXin Li 21*67e74705SXin Limodule empty { header "Inputs/empty.h" export * } 22