diff options
| author | Pavel Samolysov <samolisov@gmail.com> | 2024-07-28 13:44:57 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-28 13:44:57 +0300 |
| commit | 81595e9178eedc18dfcace9ac412f20697497f9f (patch) | |
| tree | 9df7cc2c5c156b0068f9df4b993bf2d9aecad6d8 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface | |
| parent | f7914aa2fd91a54f1314570442fc7730ee4b0457 (diff) | |
[Clang][Sema] Add a test for move ctor calling for a base class. NFC (#97164)
When clang compiles the following expression:
```c++
return A{B{"Move Ctor"}};
```
(where `B` is a base class for `A`), it adds a call to the move
constructor of `B`. When the code is changed to...
```c++
return A{{"No Move Ctor"}};
```
... a move constructor is invoked neither for `A` nor for `B`.
The lit test demonstrates the difference in the generated AST.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface')
0 files changed, 0 insertions, 0 deletions
