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
gccrs: Handle `async` functions in traits
[official-gcc.git]
/
gcc
/
testsuite
/
rust
/
compile
/
attr_deprecated_2.rs
blob
bbb6c12f29044487c3a8ad7772390fe41bccbd6d
1
#[deprecated(since="1.0")]
2
fn test1() {}
3
4
// { dg-excess-errors "unknown meta item .invalid." }
5
#[deprecated(invalid="invalid")]
6
fn test2() {}
7
8
fn main() {
9
test1(); // { dg-warning ".attr_deprecated_2::test1. is deprecated" }
10
test2();
11
}