106245bfb3ae40bb24a8bfb17eafeb266a4daf5caDouglas Gregor// RUN: %clang_cc1 -fsyntax-only -verify %s 206245bfb3ae40bb24a8bfb17eafeb266a4daf5caDouglas Gregortemplate<typename T> 306245bfb3ae40bb24a8bfb17eafeb266a4daf5caDouglas Gregorclass X0 { 4b3df1386680b3830d2f4d300d4d7eaba134135fcDouglas Gregor friend T; // expected-warning{{non-class friend type 'T' is a C++11 extension}} 506245bfb3ae40bb24a8bfb17eafeb266a4daf5caDouglas Gregor}; 606245bfb3ae40bb24a8bfb17eafeb266a4daf5caDouglas Gregor 706245bfb3ae40bb24a8bfb17eafeb266a4daf5caDouglas Gregorclass X1 { }; 806245bfb3ae40bb24a8bfb17eafeb266a4daf5caDouglas Gregorenum E1 { }; 906245bfb3ae40bb24a8bfb17eafeb266a4daf5caDouglas GregorX0<X1> x0a; 1006245bfb3ae40bb24a8bfb17eafeb266a4daf5caDouglas GregorX0<X1 *> x0b; 1106245bfb3ae40bb24a8bfb17eafeb266a4daf5caDouglas GregorX0<int> x0c; 1206245bfb3ae40bb24a8bfb17eafeb266a4daf5caDouglas GregorX0<E1> x0d; 1306245bfb3ae40bb24a8bfb17eafeb266a4daf5caDouglas Gregor 14