llvm-project/llvm/test/TableGen/invalid-macro-name-command-line.td
Rahul Joshi a18af41c20
[LLVM] Change error messages to start with lower case (#113748)
Change LLVM Asm and TableGen Lexer/Parser error messages to begin with
lower case.
2024-10-29 12:26:33 -07:00

10 lines
615 B
TableGen

// RUN: not llvm-tblgen %s -DMACRO=1 2>&1 | FileCheck %s --check-prefix=CHECK-TEST-1
// RUN: not llvm-tblgen %s -D0MAC 2>&1 | FileCheck %s --check-prefix=CHECK-TEST-2
// RUN: not llvm-tblgen %s -D_MAC# 2>&1 | FileCheck %s --check-prefix=CHECK-TEST-3
// RUN: not llvm-tblgen %s -D 2>&1 | FileCheck %s --check-prefix=CHECK-TEST-4
// CHECK-TEST-1: error: invalid macro name `MACRO=1` specified on command line
// CHECK-TEST-2: error: invalid macro name `0MAC` specified on command line
// CHECK-TEST-3: error: invalid macro name `_MAC#` specified on command line
// CHECK-TEST-4: for the -D option: requires a value!