1 // RUN: llvm-tblgen %s | FileCheck %s
3 // CHECK: class Y<string Y:S = ?> {
4 // CHECK: string T = !strconcat(Y:S, "foo");
5 // CHECK: string T2 = !strconcat(Y:S, !strconcat("foo", !strconcat(Y:S, "bar")));
6 // CHECK: string S = "foobar";
10 // CHECK: string T = "fufoo";
11 // CHECK: string T2 = "fufoofubar";
12 // CHECK: string S = "foobar";
16 string T = !strconcat(S, "foo");
17 // More than two arguments is equivalent to nested calls
18 string T2 = !strconcat(S, "foo", S, "bar");
20 // String values concatenate lexically, as in C.
21 string S = "foo" "bar";