
In D152070 we added many new intrinsic types required for the RISC-V Vector Extension. This was crashing when loading the AST as those types are intrinsically added to the AST (they don't come from the disk). The total number required now by clang exceeds 400 so increasing the value to 500 solves the problem. This value was already increased in D92715 but I assume this has some impact on the on-disk format. Also add a static assert to avoid this happening again in the future. Differential Revision: https://reviews.llvm.org/D153111
21 lines
733 B
Plaintext
21 lines
733 B
Plaintext
// 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 60KB (and at least 10K, for now).
|
|
// RUN: wc -c %t/base.pcm | FileCheck --check-prefix=CHECK-SIZE %s
|
|
// CHECK-SIZE: {{(^|[^0-9])[1-5][0-9][0-9][0-9][0-9]($|[^0-9])}}
|
|
|
|
module empty { header "Inputs/empty.h" export * }
|