mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
865845db70
TableGen has a limited preprocessor, which only really supports easier. llvm-svn: 360670
11 lines
215 B
TableGen
11 lines
215 B
TableGen
// 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
|