llvm-for-llvmta/test/TableGen/prep-ifndef.td

11 lines
215 B
TableGen
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
// RUN: llvm-tblgen %s -DMACRO | FileCheck %s
// RUN: llvm-tblgen %s | FileCheck %s --check-prefix=CHECK-NOMACRO
#ifndef MACRO
// CHECK-NOMACRO: def nomacro
def nomacro;
#else
// CHECK: def macro
def macro;
#endif