brintos

brintos / llvm-project-archived public Read only

0
0
Text · 612 B · 12fcb45 Raw
17 lines · plain
1# RUN: yaml2obj -E -Dfoo=wibble %s | FileCheck %s2 3This is a test of yaml2obj's pure preprocessing mode, so it doesn't4have to contain valid YAML, or any YAML at all. But we do have to be5careful with the FileCheck CHECK directives, because they'll be6emitted 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