Lines Matching full:deprecated
3 int f() __attribute__((deprecated)); // expected-note 2 {{'f' has been explicitly marked deprecated…
4 void g() __attribute__((deprecated));
5 void g(); // expected-note {{'g' has been explicitly marked deprecated here}}
7 extern int var __attribute__((deprecated)); // expected-note {{'var' has been explicitly marked dep…
10 int (*ptr)() = f; // expected-warning {{'f' is deprecated}} in a()
11 f(); // expected-warning {{'f' is deprecated}} in a()
14 g(); // expected-warning {{'g' is deprecated}} in a()
16 return var; // expected-warning {{'var' is deprecated}} in a()
20 extern int var; // expected-note {{'var' has been explicitly marked deprecated here}}
22 return var; // expected-warning {{'var' is deprecated}} in w()
25 int old_fn() __attribute__ ((deprecated));
26 int old_fn(); // expected-note {{'old_fn' has been explicitly marked deprecated here}}
27 int (*fn_ptr)() = old_fn; // expected-warning {{'old_fn' is deprecated}}
30 return old_fn()+1; // no warning, deprecated functions can use deprecated symbols. in old_fn()
35 …int x __attribute__((deprecated)); // expected-note 3 {{'x' has been explicitly marked deprecated …
39 ++F->x; // expected-warning {{'x' is deprecated}} in test1()
40 struct foo f1 = { .x = 17 }; // expected-warning {{'x' is deprecated}} in test1()
41 struct foo f2 = { 17 }; // expected-warning {{'x' is deprecated}} in test1()
44 … struct foo foo_dep __attribute__((deprecated)); // expected-note 12 {{'foo_dep' has been explicit…
45 foo_dep *test2; // expected-warning {{'foo_dep' is deprecated}}
47 struct __attribute__((deprecated,
48 …valid_attribute' ignored}} expected-note 2 {{'bar_dep' has been explicitly marked deprecated here}}
50 struct bar_dep *test3; // expected-warning {{'bar_dep' is deprecated}}
53 // These should not warn because the actually declaration itself is deprecated.
55 foo_dep *test4 __attribute__((deprecated));
56 struct bar_dep *test5 __attribute__((deprecated));
58 typedef foo_dep test6(struct bar_dep*); // expected-warning {{'foo_dep' is deprecated}} \
59 // expected-warning {{'bar_dep' is deprecated}}
60 typedef foo_dep test7(struct bar_dep*) __attribute__((deprecated));
63 p += sizeof(foo_dep); // expected-warning {{'foo_dep' is deprecated}} in test8()
65 foo_dep *ptr; // expected-warning {{'foo_dep' is deprecated}} in test8()
66 ptr = (foo_dep*) p; // expected-warning {{'foo_dep' is deprecated}} in test8()
68 int func(foo_dep *foo); // expected-warning {{'foo_dep' is deprecated}} in test8()
72 foo_dep *test9(void) __attribute__((deprecated));
82 void test10(void) __attribute__((deprecated));
90 char test11[sizeof(foo_dep)] __attribute__((deprecated));
91 char test12[sizeof(foo_dep)]; // expected-warning {{'foo_dep' is deprecated}}
93 int test13(foo_dep *foo) __attribute__((deprecated));
94 int test14(foo_dep *foo); // expected-warning {{'foo_dep' is deprecated}}
96 unsigned long test15 = sizeof(foo_dep); // expected-warning {{'foo_dep' is deprecated}}
97 unsigned long test16 __attribute__((deprecated))
100 foo_dep test17, // expected-warning {{'foo_dep' is deprecated}}
101 test18 __attribute__((deprecated)),
105 enum __attribute__((deprecated)) Test20 { // expected-note {{'Test20' has been explicitly marked de…
106 …test20_a __attribute__((deprecated)), // expected-note {{'test20_a' has been explicitly marked dep…
107 test20_b // expected-note {{'test20_b' has been explicitly marked deprecated here}}
110 enum Test20 f; // expected-warning {{'Test20' is deprecated}} in test20()
111 f = test20_a; // expected-warning {{'test20_a' is deprecated}} in test20()
112 f = test20_b; // expected-warning {{'test20_b' is deprecated}} in test20()
118 foo_dep a __attribute((deprecated));
119 foo_dep b; // expected-warning {{'foo_dep' is deprecated}}
120 foo_dep c, d __attribute((deprecated)); // expected-warning {{'foo_dep' is deprecated}}
121 __attribute((deprecated)) foo_dep e, f;
124 typedef int test23_ty __attribute((deprecated));
127 // expected-note@-3 {{'test23_ty' has been explicitly marked deprecated here}}
129 typedef int test23_ty; // expected-note {{'test23_ty' has been explicitly marked deprecated here}}
131 test23_ty test23_v; // expected-warning {{'test23_ty' is deprecated}}