mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
8871b402ec
Differential Revision: https://reviews.llvm.org/D95312 Add a test for the backend.
37 lines
555 B
TableGen
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;
|
|
|