mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-09 13:26:08 +00:00

Passing -verify to clang without -cc1 or -Xclang silently passes (with a printed warning, but lit doesn't care about that). This change adds -cc1 or, as is necessary in one case, -Xclang to fix this so that these tests are actually verifying as intended. I'd like to change the driver so this kind of mistake could not be made, but I'm not entirely sure how. Further, since the driver only warns about unknown flags in general, we could have similar bugs with a misspellings of arguments that would be nice to find. llvm-svn: 154776
7 lines
226 B
C
7 lines
226 B
C
// RUN: %clang_cc1 %s -fsyntax-only -verify
|
|
// rdar://7876588
|
|
|
|
// This test verifies that clang gives a decent error for UTF-16 source files.
|
|
|
|
#include "utf-16.c.txt" // expected-error {{UTF-16 (LE) byte order mark detected}}
|