1 ; Test incorrect syntax for -D# option is correctly diagnosed.
3 ; Invalid variable name: starts with a digit.
4 RUN: not FileCheck -D#10VALUE=10 --input-file %s %s 2>&1 \
5 RUN: | FileCheck %s --strict-whitespace --match-full-lines --check-prefix NUMERRCLIFMT
7 NUMERRCLIFMT:Global defines:1:46: error: invalid variable name
8 NUMERRCLIFMT-NEXT:Global define #1: #10VALUE=10 (parsed as: {{\[\[#10VALUE:10\]\]}})
11 ; Invalid definition of pseudo variable.
12 RUN: not FileCheck -D#@VALUE=10 --input-file %s %s 2>&1 \
13 RUN: | FileCheck %s --strict-whitespace --match-full-lines --check-prefix NUMERRCLIPSEUDO
15 NUMERRCLIPSEUDO:Global defines:1:45: error: definition of pseudo numeric variable unsupported
16 NUMERRCLIPSEUDO-NEXT:Global define #1: #@VALUE=10 (parsed as: {{\[\[#@VALUE:10\]\]}})
17 NUMERRCLIPSEUDO-NEXT: ^
19 ; Invalid definition of an expression.
20 RUN: not FileCheck -D#VALUE+2=10 --input-file %s %s 2>&1 \
21 RUN: | FileCheck %s --strict-whitespace --match-full-lines --check-prefix NUMERRCLITRAIL
23 NUMERRCLITRAIL:Global defines:1:51: error: unexpected characters after numeric variable name
24 NUMERRCLITRAIL-NEXT:Global define #1: #VALUE+2=10 (parsed as: {{\[\[#VALUE\+2:10\]\]}})
25 NUMERRCLITRAIL-NEXT: ^