| Douglas Gregor | bad3518 | 2009-03-19 03:51:16 +0000 | [diff] [blame] | 1 | // RUN: clang -ast-print %s 2>&1 | grep "N::M::X<INT>::value" | 
| 2 | namespace N { | ||||
| 3 | namespace M { | ||||
| 4 | template<typename T> | ||||
| 5 | struct X { | ||||
| 6 | enum { value }; | ||||
| 7 | }; | ||||
| 8 | } | ||||
| 9 | } | ||||
| 10 | |||||
| 11 | typedef int INT; | ||||
| 12 | |||||
| 13 | int test() { | ||||
| 14 | return N::M::X<INT>::value; | ||||
| 15 | } | ||||