summaryrefslogtreecommitdiffstats
path: root/test/CXX/class.access/class.friend/p2-cxx03.cpp
blob: 82cddc2bad50ec07e536951a5fc56226d3674a0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -fsyntax-only -verify %s
template<typename T>
class X0 {
  friend T; // expected-warning{{non-class friend type 'T' is a C++0x extension}}
};

class X1 { };
enum E1 { };
X0<X1> x0a;
X0<X1 *> x0b;
X0<int> x0c;
X0<E1> x0d;

OpenPOWER on IntegriCloud