1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 namespace std_example
{
8 float &g(const int &&);
19 // FIXME: We don't support ref-qualifiers yet.
27 A
& operator<<(A
&&, char);
39 struct remove_reference
{
44 struct remove_reference
<T
&> {
49 struct remove_reference
<T
&&> {
53 namespace FunctionReferencesOverloading
{
54 template<typename T
> int &f(typename remove_reference
<T
>::type
&);
55 template<typename T
> float &f(typename remove_reference
<T
>::type
&&);
57 void test_f(int (&func_ref
)(int)) {
58 int &ir
= f
<int (&)(int)>(func_ref
);