Files
clang-p2996/clang/test/CXX/drs/dr2354.cpp
Vlad Serebrennikov a603f566db [clang] CWG 2354: prohibit alignas for enums
Reviewed By: aaron.ballman, erichkeane

Differential Revision: https://reviews.llvm.org/D121723
2022-03-16 15:48:18 +08:00

11 lines
313 B
C++

// RUN: %clang_cc1 -x c++ -verify %s
// dr2354: 15
namespace DR2354 {
enum alignas(64) A {}; // expected-error {{'alignas' attribute cannot be applied to an enumeration}}
enum struct alignas(64) B {}; // expected-error {{'alignas' attribute cannot be applied to an enumeration}}
} // namespace DR2354