| 1 | // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s |
|---|---|
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | struct X { |
| 5 | void f() &; |
| 6 | void g() &&; |
| 7 | }; |
| 8 | |
| 9 | void (X::*pmf)() & = &X::f; |
| 10 |
| 1 | // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s |
|---|---|
| 2 | // expected-no-diagnostics |
| 3 | |
| 4 | struct X { |
| 5 | void f() &; |
| 6 | void g() &&; |
| 7 | }; |
| 8 | |
| 9 | void (X::*pmf)() & = &X::f; |
| 10 |