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 4d1bfcf14, druntime 9ba9a6ae, phobos c0cc5e917.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
must_use.d
blob
e3b5fedfd4d79ce44b822f97c04215f18b689e77
1
/+
2
TEST_OUTPUT:
3
---
4
fail_compilation/must_use.d(15): Error: ignored value of `@mustuse` type `must_use.S`; prepend a `cast(void)` if intentional
5
---
6
+/
7
import
core
.
attribute
;
8
9
@mustuse
struct
S
{}
10
11
S
fun
() {
return
S
(); }
12
13
void
test
()
14
{
15
fun
();
16
}