File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ void func_16(void) {
95
95
// RHS member access.
96
96
int xval = x .val ; // expected-error {{accessing a member of an atomic structure or union is undefined behavior}}
97
97
xval = xp -> val ; // expected-error {{accessing a member of an atomic structure or union is undefined behavior}}
98
- int yval = y .val ; // expected-error {{accessing a member of an atomic structure or union is undefined behavior}}
99
- yval = yp -> val ; // expected-error {{accessing a member of an atomic structure or union is undefined behavior}}
98
+ int yval = y .ival ; // expected-error {{accessing a member of an atomic structure or union is undefined behavior}}
99
+ yval = yp -> ival ; // expected-error {{accessing a member of an atomic structure or union is undefined behavior}}
100
100
101
101
// Using the type specifier instead of the type qualifier.
102
102
_Atomic(struct { int val ; }) z ;
You can’t perform that action at this time.
0 commit comments