llvm-project/clang/test/Frontend/verify-gh141221.c
cor3ntin 3315b84a50
[Clang] Fix an out of bound access in -verify comment parsing (#141940)
When the comment ends with a splice at EOF.

Fixes #141221
2025-05-29 22:26:25 +02:00

6 lines
165 B
C

// RUN: %clang_cc1 -verify %s
// Check that we don't crash if the file ends in a splice
// This file should *NOT* end with a new line
a;
// expected-error@-1 {{}} \