Fariborz Jahanian | 2b1d51b | 2010-10-05 23:24:00 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 %s -verify -fsyntax-only |
| 2 | |
| 3 | struct s { int a; } __attribute__((deprecated)) x; // expected-warning {{'s' is deprecated}} |
| 4 | |
| 5 | typeof(x) y; // expected-warning {{'s' is deprecated}} |
| 6 | |
| 7 | union un{ int a; } __attribute__((deprecated)) u; // expected-warning {{'un' is deprecated}} |
| 8 | |
| 9 | typeof( u) z; // expected-warning {{'un' is deprecated}} |
| 10 | |
| 11 | enum E{ one} __attribute__((deprecated)) e; // expected-warning {{'E' is deprecated}} |
| 12 | |
| 13 | typeof( e) w; // expected-warning {{'E' is deprecated}} |