mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
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;
|
||
|
|