1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3 // expected-no-diagnostics
5 namespace OrderWithStaticMember
{
7 template<class T
> int g(T
**, int=0) { return 0; }
8 template<class T
> static int g(T
*) { return 1; }
17 #if __cplusplus >= 201103L
18 namespace OperatorWithRefQualifier
{
20 template<class T
> struct B
{
21 template<class R
> int &operator*(R
&) &&;
24 template<class T
, class R
> float &operator*(T
&&, R
&);
29 int &ir2
= B
<A
>() * a
;
34 template <typename T
> struct V
{};
35 struct S
{ template<typename T
> S
&operator>>(T
&t
) = delete; };
36 template<typename T
> S
&operator>>(S
&s
, V
<T
> &v
);
37 void f(S s
, V
<int> v
) { s
>> v
; }