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
/
fail18985.d
blob
830a6792ad2dda522e0d54c05c5ffd6bb7a02b30
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail18985.d(16): Error: `foo` is not a scalar, it is a `object.Object`
5
fail_compilation/fail18985.d(17): Error: `bar` is not a scalar, it is a `shared(Object)`
6
---
7
*/
8
9
// https://issues.dlang.org/show_bug.cgi?id=18985
10
11
Object foo
;
12
shared
Object bar
;
13
14
void
main
()
15
{
16
foo
+=
1
;
17
bar
+=
1
;
18
}