blob: 41019eb675df0854a648b8de28ec8efc2167074c [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: tblgen %s | grep {zing = 4} | wc -l | grep 2
2
3class C1<int A, string B> {
4 int bar = A;
5 string thestr = B;
6 int zing;
7}
8
9def T : C1<4, "blah">;
10
11multiclass t<int a> {
12 def S1 : C1<a, "foo"> {
13 int foo = 4;
14 let bar = 1;
15 }
16 def S2 : C1<a, "bar">;
17}
18
19defm FOO : t<42>;
20
21def T4 : C1<6, "foo">;
22
23let zing = 4 in
24 defm BAZ : t<3>;
25