1// RUN: %clang_cc1 -fsyntax-only -verify %s
2template<typename T>
3class X0 {
4  friend T; // expected-warning{{non-class friend type 'T' is a C++11 extension}}
5};
6
7class X1 { };
8enum E1 { };
9X0<X1> x0a;
10X0<X1 *> x0b;
11X0<int> x0c;
12X0<E1> x0d;
13
14