| Peter Collingbourne | 7f7f2e9 | 2011-10-06 13:39:59 +0000 | [diff] [blame] | 1 | // RUN llvm-tblgen %s | FileCheck %s |
| David Greene | 0c3a2b4 | 2011-09-30 20:59:51 +0000 | [diff] [blame] | 2 | |
| Chandler Carruth | a5a29f9 | 2012-07-02 12:47:22 +0000 | [diff] [blame] | 3 | // RUN: llvm-tblgen %s | grep "foo" | count 1 |
| David Greene | 0c3a2b4 | 2011-09-30 20:59:51 +0000 | [diff] [blame] | 4 | |
| 5 | class Base<string t> { | ||||
| 6 | string text = t; | ||||
| 7 | } | ||||
| 8 | |||||
| 9 | class Derived<list<list<string>> thetext> : Base<thetext[0][0]>; | ||||
| 10 | |||||
| 11 | def FOO : Derived<[["foo"]]>; | ||||
| 12 | |||||
| 13 | // CHECK: text = "foo" | ||||