Sign in
ara-mdk
/
platform
/
external
/
clang
/
f3260565f46491a0d99e41d47a13767218242ce5
/
.
/
test
/
CXX
/
class.access
/
class.friend
/
p2-cxx03.cpp
blob: f8cabfd78a8f5b69e977fe54f70a3f4854cea8f2 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -verify %s
template
<
typename
T
>
class
X0
{
friend
T
;
// expected-warning{{non-class friend type 'T' is a C++11 extension}}
};
class
X1
{
};
enum
E1
{
};
X0
<
X1
>
x0a
;
X0
<
X1
*>
x0b
;
X0
<int>
x0c
;
X0
<
E1
>
x0d
;