Merge with gcc-4_3-branch up to revision 175516.
[official-gcc.git] / gcc / testsuite / g++.dg / parse / attr3.C
blob848df055cedb9761bc91b4a203fdc99ce4a0f0c6
1 // PR c++/39219
3 enum __attribute__ ((deprecated)) E { e };
4 struct S { enum __attribute__ ((deprecated)) F { f = e }; };
6 int main () {
7     E x;        // { dg-warning "'E' is deprecated" "" }
8     x = e;
10     S::F y;     // { dg-warning "'F' is deprecated" "" }
11     y = S::f;
13     return x + y;