llvm-project/clang/test/Driver/fmessage-length.c
Fangrui Song 4805901930 [Driver] Don't pass -fmessage-length=0 to CC1
-fmessage-length=0 is common (unless the environment variable COLUMNS
is set and exported. This simplifies a common CC1 command line.
2020-03-31 17:12:08 -07:00

10 lines
430 B
C

// RUN: %clang -### -c %s -fmessage-length=80 2>&1 | FileCheck %s
// CHECK: "-fmessage-length=80"
/// Omit -fmessage-length=0 to simplify common CC1 command lines.
// RUN: %clang -### -c %s -fmessage-length=0 2>&1 | FileCheck --check-prefix=ZERO %s
// ZERO-NOT: "-fmessage-length=0"
// RUN: %clang -### -c %s -fmessage-length=nan 2>&1 | FileCheck --check-prefix=ERR %s
// ERR: error: invalid argument 'nan' to -fmessage-length=