Fangrui Song | 4805901 | 2020-03-31 16:46:51 -0700 | [diff] [blame] | 1 | // RUN: %clang -### -c %s -fmessage-length=80 2>&1 | FileCheck %s |
2 | // CHECK: "-fmessage-length=80" | ||||
3 | |||||
4 | /// Omit -fmessage-length=0 to simplify common CC1 command lines. | ||||
5 | // RUN: %clang -### -c %s -fmessage-length=0 2>&1 | FileCheck --check-prefix=ZERO %s | ||||
6 | // ZERO-NOT: "-fmessage-length=0" | ||||
7 | |||||
8 | // RUN: %clang -### -c %s -fmessage-length=nan 2>&1 | FileCheck --check-prefix=ERR %s | ||||
9 | // ERR: error: invalid argument 'nan' to -fmessage-length= |