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
/
fail_contracts3.d
blob
b0b366b3b7b6563df4a4b45032a657f5f19e2439
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail_contracts3.d(13): Error: function `fail_contracts3.D.foo` cannot have an in contract when overridden function `fail_contracts3.C.foo` does not have an in contract
5
---
6
*/
7
8
class
C
{
9
void
foo
(){}
10
}
11
12
class
D
:
C
{
13
override void
foo
()
in
{}
do
{}
14
}