1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/TableGen/detailed-records.td
Paul C. Anagnostopoulos 8871b402ec [TableGen] [DetailedRecords] Print record name that is null string as ""
Differential Revision: https://reviews.llvm.org/D95312

Add a test for the backend.
2021-01-27 10:41:46 -05:00

37 lines
555 B
TableGen

// RUN: llvm-tblgen -print-detailed-records %s | FileCheck %s
// This test file ensures that the DetailedRecords backend prints all
// the global variables, classes, and records.
// CHECK: ----- Global Variables
// CHECK: Answer
// CHECK: Greeting
// CHECK: ----- Classes
// CHECK: Class1
// CHECK: Class2
// CHECK: ----- Records
// CHECK: ""
// CHECK: Info
// CHECK: Rec1
// CHECK: anonymous_0
defvar Greeting = "Hello there.";
defvar Answer = 42;
class Class1 {
}
class Class2 {
}
def : Class1;
def "" : Class2;
def Rec1;
def Info : Class1;