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
/
fail6242.d
blob
cb2de2c539e4b958ce38f4b580d4a6fa936301bc
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail6242.d(9): Error: cannot implicitly override base class method `fail6242.A.fun` with `fail6242.B.fun`; add `override` attribute
5
---
6
*/
7
class
A
{
void
fun
(
int
) {} }
8
9
class
B
:
A
{
void
fun
(
int
x
)
in
{
assert
(
x
>
0
); }
do
{} }