1 // RUN: %clang_cc1 -fsyntax-only -std=c++20 -Wno-unused -Wunsequenced -verify %s
10 A
agg1( a
++, a
++ ); // no warning
11 A
agg2( a
++ + a
, a
++ ); // expected-warning {{unsequenced modification and access to 'a'}}
13 int arr1
[]( a
++, a
++ ); // no warning
14 int arr2
[]( a
++ + a
, a
++ ); // expected-warning {{unsequenced modification and access to 'a'}}