aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/typeof-use-deprecated.c
blob: 2e080bae1f2b361dc1a723c46abd86e4690a8ba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 %s -verify -fsyntax-only

struct s { int a; } __attribute__((deprecated)) x;  // expected-warning {{'s' is deprecated}}

typeof(x) y;  // expected-warning {{'s' is deprecated}}

union un{ int a; } __attribute__((deprecated)) u;  // expected-warning {{'un' is deprecated}}

typeof(     u) z; // expected-warning {{'un' is deprecated}}

enum E{ one} __attribute__((deprecated))  e; // expected-warning {{'E' is deprecated}} 

typeof( e) w; // expected-warning {{'E' is deprecated}}