blob: ddb9fec3b3f457d624c97288bdd019c340da435e [file] [log] [blame]
/* APPLE LOCAL file radar 5976344 */
/* Test that class template can be properly parsed and handled inside
an @implementation. */
/* { dg-do compile } */
template <class T> struct TemplateDeclarationIsFineHere {};
template <class T> struct Template2 {};
@interface Test @end
@implementation Test
- (void) test {
Template2<int> youCanInstantiateTemplatesNoProblem(); /* { dg-warning "empty parentheses interpreted as a function declaration" } */
}
template <class T> struct TemplateDeclarationIsNoGoodHere {};
- (TemplateDeclarationIsNoGoodHere<int>*) Meth { return 0; }
@end