blob: 68581dd9cd65548c0814fd2ad238dd588c0e26b4 [file] [log] [blame]
// RUN: llvm-tblgen %s | FileCheck %s
class ToLower<string str> {
string s = !tolower(str);
}
class ToUpper<string str> {
string s = !toupper(str);
}
// CHECK-LABEL: def LOWER1 {
// CHECK: string s = "str";
// CHECK: }
def LOWER1: ToLower<"STR">;
// CHECK-LABEL: def LOWER2 {
// CHECK: string s = "str";
// CHECK: }
def LOWER2 : ToLower<"Str">;
// CHECK-LABEL: def LOWER3 {
// CHECK: string s = "str";
// CHECK: }
def LOWER3 : ToLower<"STr">;
// CHECK-LABEL: def UPPER1 {
// CHECK: string s = "STR";
// CHECK: }
def UPPER1 : ToUpper<"str">;
// CHECK-LABEL: def UPPER2 {
// CHECK: string s = "STR";
// CHECK: }
def UPPER2 : ToUpper<"sTr">;
// CHECK-LABEL: def UPPER3 {
// CHECK: string s = "STR";
// CHECK: }
def UPPER3 : ToUpper<"sTR">;