Skip to content

Commit

Permalink
Merge pull request #4523 from MartinNowak/test4149
Browse files Browse the repository at this point in the history
test for Issue 4149 - refs displayed as pointers in gdb
  • Loading branch information
yebblies committed Mar 28, 2015
2 parents a17015a + 2f4715d commit f562afe
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/runnable/gdb4149.d
@@ -0,0 +1,24 @@
/*
REQUIRED_ARGS: -g
PERMUTE_ARGS:
GDB_SCRIPT:
---
b 17
r
echo RESULT=
p x
---
GDB_MATCH: RESULT=.*33
*/

void foo(ref int x)
{
++x;
// BP
}

void main()
{
auto x = 32;
foo(x);
}

0 comments on commit f562afe

Please sign in to comment.