forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request llvm#3801 from shafik/82009764_unwrap_type_when_de…
…fef_the_value [lldb] Unwrap the type when dereferencing the value
- Loading branch information
Showing
3 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
typedef int TTT; | ||
typedef int &td_int_ref; | ||
|
||
int main() { | ||
int i = 0; | ||
// references to typedefs | ||
TTT &l_ref = i; | ||
TTT &&r_ref = static_cast<TTT &&>(i); | ||
// typedef of a reference | ||
td_int_ref td_to_ref_type = i; | ||
|
||
return l_ref; // break here | ||
} |