Author: Aaron Ballman Date: 2022-03-29T12:27:23-04:00 New Revision: 43b34c981ad303e5e030c7c619cb54997c2fc341
URL: https://github.com/llvm/llvm-project/commit/43b34c981ad303e5e030c7c619cb54997c2fc341 DIFF: https://github.com/llvm/llvm-project/commit/43b34c981ad303e5e030c7c619cb54997c2fc341.diff LOG: Fix a test failure. This amends 3c84e4a0dbd08fc03bbcdd8354a984e0efcf7672 which had an unsaved change when committed. Added: Modified: clang/test/Sema/atomic-expr.c Removed: ################################################################################ diff --git a/clang/test/Sema/atomic-expr.c b/clang/test/Sema/atomic-expr.c index 0dceadf4e705c..86cd32ce338c8 100644 --- a/clang/test/Sema/atomic-expr.c +++ b/clang/test/Sema/atomic-expr.c @@ -95,8 +95,8 @@ void func_16(void) { // RHS member access. int xval = x.val; // expected-error {{accessing a member of an atomic structure or union is undefined behavior}} xval = xp->val; // expected-error {{accessing a member of an atomic structure or union is undefined behavior}} - int yval = y.val; // expected-error {{accessing a member of an atomic structure or union is undefined behavior}} - yval = yp->val; // expected-error {{accessing a member of an atomic structure or union is undefined behavior}} + int yval = y.ival; // expected-error {{accessing a member of an atomic structure or union is undefined behavior}} + yval = yp->ival; // expected-error {{accessing a member of an atomic structure or union is undefined behavior}} // Using the type specifier instead of the type qualifier. _Atomic(struct { int val; }) z; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits