Anders Carlsson | 315d229 | 2009-06-07 18:45:35 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
2 | |||||
3 | // @encode expressions | ||||
4 | |||||
5 | template <typename T> struct Encode { | ||||
6 | static const char *encode(T t) { | ||||
7 | return @encode(T); | ||||
8 | } | ||||
9 | }; | ||||
10 | |||||
11 | template struct Encode<int>; | ||||
12 | template struct Encode<double>; |