1 # RUN: yaml2obj -E -Dfoo=wibble %s | FileCheck %s
3 This is a test of yaml2obj's pure preprocessing mode, so it doesn't
4 have to contain valid YAML, or any YAML at all. But we do have to be
5 careful with the FileCheck CHECK directives, because they'll be
6 emitted into the preprocessed output, and risk matching themselves!
7 For that reason, each one matches only at the start of a line.
10 [[foo]] # CHECK: {{^wibble}}
12 Expand an undefined macro:
13 [[bar]] # CHECK: {{^\[\[bar\]\]}}
15 Expand an undefined macro where we provided a default value:
16 [[baz=123]] # CHECK: {{^123}}