1 /* Test for @encode in templates. */
2 /* { dg-options "-lobjc" } */
8 const char *my_encode(int variant)
21 result = @encode(const T*);
24 result = @encode(int);
33 if (strcmp (@encode(char), my_encode<char>(0)))
36 if (strcmp (@encode(char *), my_encode<char>(1)))
39 if (strcmp (@encode(const char *), my_encode<char>(2)))
42 if (strcmp (@encode(int), my_encode<char>(3)))