mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
ad4480cf8b
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208393 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
553 B
TableGen
19 lines
553 B
TableGen
// RUN: llvm-tblgen %s | FileCheck %s
|
|
|
|
// CHECK: class Y<list<string> Y:S = ?> {
|
|
// CHECK: list<string> T1 = !listconcat(Y:S, ["foo"]);
|
|
// CHECK: list<string> T2 = !listconcat(Y:S, !listconcat(["foo"], !listconcat(Y:S, ["bar", "baz"])));
|
|
// CHECK: }
|
|
|
|
// CHECK: def Z {
|
|
// CHECK: list<string> T1 = ["fu", "foo"];
|
|
// CHECK: list<string> T2 = ["fu", "foo", "fu", "bar", "baz"];
|
|
// CHECK: }
|
|
|
|
class Y<list<string> S> {
|
|
list<string> T1 = !listconcat(S, ["foo"]);
|
|
list<string> T2 = !listconcat(S, ["foo"], S, ["bar", "baz"]);
|
|
}
|
|
|
|
def Z : Y<["fu"]>;
|