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