llvm-project/clang/test/Parser/cxx98-enum.cpp

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

11 lines
219 B
C++
Raw Normal View History

2020-05-11 04:39:23 +08:00
// RUN: %clang_cc1 -std=c++98 -verify %s
enum E {};
enum F {};
struct A {
// OK, this is an enumeration bit-field.
enum E : int(0);
enum F : int{0}; // expected-error {{expected '(' for function-style cast}}
};