
TableGen's lexer was unable to handle nested #ifndef when the outer `#ifdef` / `#ifndef` scope is subject to skip. This was caused by returning the canonicalized token when it should have returned the original one. Fix #65100. Differential Revision: https://reviews.llvm.org/D159236
12 lines
184 B
TableGen
12 lines
184 B
TableGen
// RUN: llvm-tblgen -I %p %s | FileCheck %s
|
|
|
|
include "nested_ifdef.inc"
|
|
include "nested_ifdef2.inc"
|
|
|
|
// CHECK: def bar
|
|
// CHECK: def foo
|
|
// CHECK: def haha
|
|
// CHECK: def zoo
|
|
|
|
def zoo;
|