1 // RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
3 enum class E
{ Foo
, Bar
= 97119 };
5 void f() __attribute__((constructor(E::Foo
))); // expected-error{{'constructor' attribute requires an integer constant}}
6 void f2() __attribute__((constructor(E::Bar
)));// expected-error{{'constructor' attribute requires an integer constant}}
19 static const E e
= E::Foo
;