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

module empty { header "Inputs/empty.h" export * }