1 // RUN: mlir-tblgen -I %S/../../include %s | FileCheck %s
3 include "mlir/IR/Utils.td"
5 // CHECK-DAG: string value = "CamelCaseTest"
6 class already_camel_case {
7 string value = snakeCaseToCamelCase<"CamelCaseTest">.ret;
10 // CHECK-DAG: string value = "Foo"
12 string value = snakeCaseToCamelCase<"foo">.ret;
15 // CHECK-DAG: string value = "ThisIsATest"
17 string value = snakeCaseToCamelCase<"this_is_a_test">.ret;
20 // CHECK-DAG: string value = "ThisIsATestAgain"
21 class extra_underscores {
22 string value = snakeCaseToCamelCase<"__this__is_a_test__again__">.ret;