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