blob: 9fff8610ae0d44bcaa2cf4a4faf20eeef5a4ba4b [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
@class NSObject;
template<typename T> struct C {
static T f(); // expected-error {{interface type 'NSObject' cannot be returned by value; did you forget * in 'NSObject'?}}
};
int g() { NSObject *x = C<NSObject>::f(); }//expected-error {{no member named 'f' in 'C<NSObject>'}} expected-note {{in instantiation of template class 'C<NSObject>' requested here}}