llvm/llvm/test/TableGen/invalid-macro-name-command-line.td

// 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!