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
d: Merge upstream dmd 47871363d, druntime, c52e28b7, phobos 99e9c1b77.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test20990.d
blob
0036e1441caa2880cf740272e35fde6c31bbfc99
1
// REQUIRED_ARGS: -O
2
// https://issues.dlang.org/show_bug.cgi?id=20990
3
4
// foo() and bar() should produce the same code when
5
// optimized.
6
7
void
foo
(
int
*
ptr
)
8
{
9
if
(
ptr
is null
)
10
assert
(
false
);
11
*
ptr
=
42
;
12
}
13
14
void
bar
(
int
*
ptr
)
15
{
16
assert
(
ptr
);
17
*
ptr
=
42
;
18
}