Chris Lattner | ef4e0c2 | 2006-09-01 21:14:37 +0000 | [diff] [blame^] | 1 | // RUN: tblgen %s |
2 | class C1<int A, string B> { | ||||
3 | int bar = A; | ||||
4 | string thestr = B; | ||||
5 | } | ||||
6 | |||||
7 | def T : C1<4, "blah">; | ||||
8 | |||||
9 | multiclass t<int a> { | ||||
10 | def S1 : C1<a, "foo"> { | ||||
11 | int foo = 4; | ||||
12 | let bar = 1; | ||||
13 | } | ||||
14 | def S2 : C1<a, "bar">; | ||||
15 | } | ||||
16 | |||||
17 | defm FOO : t<42>; |