[X86] Move getGFNICtrlMask before CTLZ/CTTZ lowering. NFC.
[llvm-project.git] / clang / test / SemaCXX / redundant-out-of-line-static-constexpr-member-def-diag.cpp
blob873fbf1b32cac38fd978d1904ec5e51d11eca2f9
1 // RUN: %clang_cc1 -std=c++17 -verify %s -Werror -Wdeprecated -Wno-error=deprecated-redundant-constexpr-static-def
3 namespace {
4 struct A {
5 static constexpr int n = 0;
6 static constexpr int m = 0;
7 };
8 constexpr int A::n; // expected-warning{{out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated}}
9 const int A::m; // expected-warning{{out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated}}