p2.cpp revision c6dbc3fa467e2355b678a6b717534928048efcb2
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2template<class T> struct A {
3  static T t; // expected-error{{static data member instantiated with function type 'int ()'}}
4};
5typedef int function();
6A<function> a; // expected-note{{instantiation of}}
7
8template<typename T> struct B {
9  B() { T t; } // expected-error{{variable instantiated with function type 'int ()'}}
10};
11B<function> b; // expected-note{{instantiation of}}
12
13