bolt/deps/llvm-18.1.8/clang/test/Modules/preprocess-missing.modulemap

8 lines
408 B
Text
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 -fmodules -fmodule-name=A -x c++-module-map %s -emit-module -o /dev/null -verify
module A {
header "does not exist" { size 12345 } // ok, do not need mtime for explicit module build
header "also does not exist" { mtime 12345 }
}
#pragma clang module contents
// expected-error@4 {{cannot emit module A: size must be explicitly specified for missing header file "also does not exist"}}