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
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
attr3.C
blob
57fa60e130e9090d6f2325100b11c610be2494ce
1
// PR c++/39219
2
3
enum __attribute__ ((deprecated)) E { e };
4
struct S { enum __attribute__ ((deprecated)) F { f = e }; };
5
6
int main () {
7
E x; // { dg-warning "'E' is deprecated" }
8
x = e;
9
10
S::F y; // { dg-warning "'F' is deprecated" }
11
y = S::f;
12
13
return x + y;
14
}