llvm-project/clang/test/Preprocessor/print-header-crash.modulemap
Bob Wilson 68bfb17f1d
[Clang] Fix crash when building a module with CC_PRINT_HEADERS_FORMAT=json (#136227)
There is no main file when building a module, so the code in
HeaderIncludesJSONCallback::EndOfMainFile() needs to check for that to
avoid crashing.
2025-04-22 10:27:07 -07:00

3 lines
192 B
Plaintext

// RUN: %clang_cc1 -header-include-format=json -header-include-filtering=only-direct-system -header-include-file %t.txt -emit-module -x c -fmodules -fmodule-name=X %s -o /dev/null
module X {}