1 // RUN: llvm-tblgen %s | FileCheck %s
3 class ToLower<string str> {
4 string s = !tolower(str);
7 class ToUpper<string str> {
8 string s = !toupper(str);
11 // CHECK-LABEL: def LOWER1 {
12 // CHECK: string s = "str";
14 def LOWER1: ToLower<"STR">;
16 // CHECK-LABEL: def LOWER2 {
17 // CHECK: string s = "str";
19 def LOWER2 : ToLower<"Str">;
21 // CHECK-LABEL: def LOWER3 {
22 // CHECK: string s = "str";
24 def LOWER3 : ToLower<"STr">;
26 // CHECK-LABEL: def UPPER1 {
27 // CHECK: string s = "STR";
29 def UPPER1 : ToUpper<"str">;
31 // CHECK-LABEL: def UPPER2 {
32 // CHECK: string s = "STR";
34 def UPPER2 : ToUpper<"sTr">;
36 // CHECK-LABEL: def UPPER3 {
37 // CHECK: string s = "STR";
39 def UPPER3 : ToUpper<"sTR">;