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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
nodiscard1.C
blob
5f2345a3407a11488200b4472ffd095f84a6fe8e
1
// { dg-do compile { target c++11 } }
2
3
[[nodiscard]] int f();
4
5
int main()
6
{
7
f(); // { dg-warning "" }
8
}