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
/
fail12636.d
blob
42e785547164e9fe22ed320d1c94fda50ed70407
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail12636.d(13): Error: C++ class `fail12636.C` cannot implement D interface `fail12636.D`
5
---
6
*/
7
8
interface
D
9
{
10
void
foo
();
11
}
12
13
extern
(
C
++)
class
C
:
D
14
{
15
extern
(
D
)
override void
foo
() { }
16
}
17
18
void
main
()
19
{
20
auto
c
=
new
C
;
21
c
.
foo
();
// works
22
D d
=
c
;
23
d
.
foo
();
// segfault
24
}