Commit 1025be0
committed
[ItaniumDemangle][test] Add test-cases for ref-qualified member pointer parameters
I noticed that there are test-cases that are commented out. But the
manglings for them seem to be impossible to generate from valid C++. I
added two test-cases generated from following C++ program:
```
struct X {
int func() const && { return 5; }
const int &&func2() { return 5; }
const int &&func3(const int &x) volatile { return 5; }
};
void f(int (X::*)() const &&, int const && (X::*)(),
int const && (X::*)(const int &) volatile) {}
int main() {
f(&X::func, &X::func2, &X::func3);
return 0;
}
```
(cherry picked from commit 46f18b7)1 parent 2b60e9c commit 1025be0
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29662 | 29662 | | |
29663 | 29663 | | |
29664 | 29664 | | |
| 29665 | + | |
| 29666 | + | |
29665 | 29667 | | |
29666 | 29668 | | |
29667 | 29669 | | |
| |||
0 commit comments