llvm-project/clang/test/Frontend/module-file-info-not-a-module.c
Dmitriy Chestnykh bf4167fd1d
[Clang] Don't crash if input file is not a module. (#98439)
Currently clang crashes with `-module-file-info` and input file which is
not a module
Emit error instead of segfaulting.
Fix #98365
2024-07-11 16:48:58 +08:00

4 lines
154 B
C

// RUN: not %clang_cc1 -module-file-info %s 2>&1 | FileCheck %s
// CHECK: fatal error: file '{{.*}}module-file-info-not-a-module.c' is not a module file