Lines Matching defs:local_int8
69 svint8_t local_int8;
80 _Static_assert(__atomic_is_lock_free(1, &local_int8) == __atomic_is_lock_free(1, incomplete_ptr), "");
81 _Static_assert(__atomic_is_lock_free(2, &local_int8) == __atomic_is_lock_free(2, incomplete_ptr), ""); // expected-error {{static assertion expression is not an integral constant expression}}
82 _Static_assert(__atomic_always_lock_free(1, &local_int8) == __atomic_always_lock_free(1, incomplete_ptr), "");
84 local_int8; // expected-warning {{expression result unused}}
86 (void)local_int8;
88 local_int8, 0; // expected-warning {{left operand of comma operator has no effect}}
90 0, local_int8; // expected-warning {{left operand of comma operator has no effect}} expected-warning {{expression result unused}}
92 svint8_t init_int8 = local_int8;
102 svint8_t brace_init_int8 = {local_int8};
103 svint8_t bad_brace_init_int8_1 = {local_int8, 0}; // expected-error {{excess elements in initializer for indivisible sizeless type 'svint8_t'}}
106 svint8_t bad_brace_init_int8_4 = {[0] = local_int8}; // expected-error-re {{initialization of non-aggregate type 'svint8_t'{{.*}} with a designated initializer list}} expected-warning {{array designators are a C99 extension}}
107 svint8_t bad_brace_init_int8_5 = {{local_int8}}; // expected-warning {{too many braces around initializer}}
108 svint8_t bad_brace_init_int8_6 = {{local_int8, 0}}; // expected-warning {{too many braces around initializer}}
110 const svint8_t const_int8 = local_int8; // expected-note {{declared const here}}
115 const volatile svint8_t const_volatile_int8 = local_int8; // expected-note {{declared const here}}
128 init_int8 = local_int8;
132 sel = local_int8; // expected-error {{assigning to 'int' from incompatible type 'svint8_t'}}
134 local_int8 = (svint8_t)local_int8;
135 local_int8 = (const svint8_t)local_int8;
136 local_int8 = (svint8_t)local_int16; // expected-error {{C-style cast from 'svint16_t' (aka '__SVInt16_t') to 'svint8_t' (aka '__SVInt8_t') is not allowed}}
137 local_int8 = (svint8_t)0; // expected-error {{C-style cast from 'int' to 'svint8_t' (aka '__SVInt8_t') is not allowed}}
138 sel = (int)local_int8; // expected-error {{C-style cast from 'svint8_t' (aka '__SVInt8_t') to 'int' is not allowed}}
140 init_int8 = local_int8;
145 const_int8 = local_int8; // expected-error {{cannot assign to variable 'const_int8' with const-qualified type 'const svint8_t'}}
147 volatile_int8 = local_int8;
152 const_volatile_int8 = local_int8; // expected-error {{cannot assign to variable 'const_volatile_int8' with const-qualified type 'const volatile svint8_t'}}
154 init_int8 = sel ? init_int8 : local_int8;
159 pass_int8(local_int8);
162 local_int8 = return_int8();
165 dump(&local_int8);
170 dump(&local_int8 + 1); // expected-error {{arithmetic on a pointer to sizeless type}}
172 *&local_int8 = local_int8;
173 *&const_int8 = local_int8; // expected-error {{read-only variable is not assignable}}
174 *&volatile_int8 = local_int8;
175 *&const_volatile_int8 = local_int8; // expected-error {{read-only variable is not assignable}}
177 global_int8_ptr[0] = local_int8; // expected-error {{subscript of pointer to sizeless type 'svint8_t'}}
178 global_int8_ptr[1] = local_int8; // expected-error {{subscript of pointer to sizeless type 'svint8_t'}}
181 overf(local_int8);
184 overf8(local_int8);
187 overf16(local_int8); // expected-error {{no matching function}}
190 varargs(1, local_int8, local_int16);
211 local_int8 &&init_int8; // expected-error {{invalid operands to binary expression}} expected-error {{not contextually convertible}}
212 local_int8 || init_int8; // expected-error {{invalid operands to binary expression}} expected-error {{not contextually convertible}}
214 if (local_int8) { // expected-error {{not contextually convertible to 'bool'}}
216 while (local_int8) { // expected-error {{not contextually convertible to 'bool'}}
219 } while (local_int8); // expected-error {{not contextually convertible to 'bool'}}
220 switch (local_int8) { // expected-error {{statement requires expression of integer type}}
336 svint8_t local_int8;
339 pass_int8_ref(local_int8);
342 local_int8 = return_int8_ref();
344 return_int8_ref() = local_int8;
348 local_int8 = return_int8_rvalue_ref();
351 return_int8_rvalue_ref() = local_int8; // expected-error {{expression is not assignable}}
355 local_int8 = static_cast<svint8_t>(local_int8);
356 local_int8 = static_cast<svint8_t>(local_int16); // expected-error {{static_cast from 'svint16_t' (aka '__SVInt16_t') to 'svint8_t' (aka '__SVInt8_t') is not allowed}}
357 local_int8 = static_cast<svint8_t>(0); // expected-error {{static_cast from 'int' to 'svint8_t' (aka '__SVInt8_t') is not allowed}}
358 local_int16 = static_cast<svint16_t>(local_int8); // expected-error {{static_cast from 'svint8_t' (aka '__SVInt8_t') to 'svint16_t' (aka '__SVInt16_t') is not allowed}}
359 sel = static_cast<int>(local_int8); // expected-error {{static_cast from 'svint8_t' (aka '__SVInt8_t') to 'int' is not allowed}}
361 throw local_int8; // expected-error {{cannot throw object of sizeless type 'svint8_t'}}
389 local_int8.~__SVInt8_t(); // expected-error {{object expression of non-scalar type 'svint8_t' (aka '__SVInt8_t') cannot be used in a pseudo-destructor expression}}
393 local_int8 = svint8_t();
394 local_int8 = svint16_t(); // expected-error {{assigning to 'svint8_t' (aka '__SVInt8_t') from incompatible type 'svint16_t'}}
403 local_int8 = w[1];
408 local_int8 = static_cast<svint8_t>(wrapper<svint8_t>());
411 local_int8 = wrapper<svint8_t>();
414 svint8_t &ref_int8 = local_int8;
416 ref_int8 = local_int8;
417 local_int8 = ref_int8;
421 svint8_t init_int8{local_int8};
422 svint8_t bad_brace_init_int8_1{local_int8, 0}; // expected-error {{excess elements in initializer for indivisible sizeless type 'svint8_t'}}
425 svint8_t bad_brace_init_int8_4{[0] = local_int8}; // expected-error-re {{initialization of non-aggregate type 'svint8_t'{{.*}} with a designated initializer list}} expected-warning {{array designators are a C99 extension}}
426 svint8_t bad_brace_init_int8_5{{local_int8}}; // expected-warning {{too many braces around initializer}}
427 svint8_t bad_brace_init_int8_6{{local_int8, 0}}; // expected-warning {{too many braces around initializer}}
429 svint8_t &ref_init_int8{local_int8};
434 template_fn_direct(local_int8);
435 template_fn_ref(local_int8);
436 template_fn_const_ref(local_int8);
438 template_fn_rvalue_ref(local_int8);
447 (void)typeid(local_int8);
532 auto auto_int8 = local_int8;
535 auto [auto_int8_a] = local_int8; // expected-error {{cannot decompose non-class, non-array type 'svint8_t' (aka '__SVInt8_t')}}
542 constructible_from_sizeless cfs1(local_int8);
543 constructible_from_sizeless cfs2 = local_int8;
545 constructible_from_sizeless cfs3{local_int8};
549 local_int8 = ([]() { return svint8_t(); })();
550 local_int8 = ([]() -> svint8_t { return svint8_t(); })();
551 auto fn1 = [&local_int8](svint8_t x) { local_int8 = x; };
552 auto fn2 = [&local_int8](svint8_t *ptr) { *ptr = local_int8; };
556 auto fn4 = [local_int8](svint8_t *ptr) { *ptr = local_int8; }; // expected-error {{by-copy capture of variable 'local_int8' with sizeless type 'svint8_t'}}
558 for (auto x : local_int8) { // expected-error {{no viable 'begin' function available}}