/* Test than @encode is properly instantiated. */ /* { dg-options "-lobjc" } */ /* { dg-do run } */ #include #include #include template class typeOf { public: operator const char*() { return @encode(T); } }; int main() { typeOf t; if (strcmp ((const char *)t, @encode(int))) abort(); typeOf c; if (strcmp ((const char *)c, @encode(const char*))) abort(); return 0; }