Skip to content

Commit 43b34c9

Browse files
committed
Fix a test failure.
This amends 3c84e4a which had an unsaved change when committed.
1 parent 1ec109e commit 43b34c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Sema/atomic-expr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ void func_16(void) {
9595
// RHS member access.
9696
int xval = x.val; // expected-error {{accessing a member of an atomic structure or union is undefined behavior}}
9797
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}}
100100

101101
// Using the type specifier instead of the type qualifier.
102102
_Atomic(struct { int val; }) z;

0 commit comments

Comments
 (0)