Home
last modified time | relevance | path

Searched refs:const_int8 (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/clang/test/Sema/
H A Dsizeless-1.c96 const svint8_t const_int8 = local_int8; // expected-note {{declared const here}} in func() local
127 init_int8 = const_int8; in func()
131 …const_int8 = local_int8; // expected-error {{cannot assign to variable 'const_int8' with const-qua… in func()
134 volatile_int8 = const_int8; in func()
142 init_int8 = sel ? init_int8 : const_int8; in func()
143 init_int8 = sel ? volatile_int8 : const_int8; in func()
153 dump(&const_int8); in func()
160 *&const_int8 = local_int8; // expected-error {{read-only variable is not assignable}} in func()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dsizeless-1.cpp110 const svint8_t const_int8 = local_int8; // expected-note {{declared const here}} in func() local
141 init_int8 = const_int8; in func()
145 …const_int8 = local_int8; // expected-error {{cannot assign to variable 'const_int8' with const-qua… in func()
148 volatile_int8 = const_int8; in func()
155 init_int8 = sel ? init_int8 : const_int8; in func()
156 init_int8 = sel ? volatile_int8 : const_int8; in func()
166 dump(&const_int8); in func()
173 *&const_int8 = local_int8; // expected-error {{read-only variable is not assignable}} in func()