[X86] Move getGFNICtrlMask before CTLZ/CTTZ lowering. NFC.
[llvm-project.git] / clang / test / SemaCXX / warn-unsequenced-paren-list-init.cpp
blob5aeeb45f81e226c311f0159d419f88c70b8aef18
1 // RUN: %clang_cc1 -fsyntax-only -std=c++20 -Wno-unused -Wunsequenced -verify %s
3 struct A {
4 int x, y;
5 };
7 void test() {
8 int a = 0;
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'}}