llvm-project/clang/test/CXX/drs/dr2354.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
313 B
C++
Raw Normal View History

// 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