repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fix22108.d
blob
149bebae0ea629452f956bba6a64597233df7f92
1
/* REQUIRED_ARGS: -preview=dip1000
2
TEST_OUTPUT:
3
---
4
fail_compilation/fix22108.d(12): Error: scope variable `p` may not be returned
5
---
6
*/
7
8
// https://issues.dlang.org/show_bug.cgi?id=22108
9
10
@safe
ref int
test
(
ref scope return int
*
p
)
11
{
12
return
*
p
;
13
}