commit | aa8c97262a2f6de0096b5bf913d084c22261b248 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Tue Jul 13 06:24:26 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Tue Jul 13 06:24:26 2010 +0000 |
tree | 4109c2f31061bfd3926f839902a1e8be1acd0c2a | |
parent | a700f688282a1984164a2a95590eb39284fb4272 [diff] [blame] |
Complain when an unnamed enumeration has no enumerations (in C++). Fixes PR7466. llvm-svn: 108231
diff --git a/clang/test/Parser/cxx-class.cpp b/clang/test/Parser/cxx-class.cpp index 4abbbc5..57831a4 100644 --- a/clang/test/Parser/cxx-class.cpp +++ b/clang/test/Parser/cxx-class.cpp
@@ -7,7 +7,7 @@ static int sf(), u; struct S {}; - enum {}; + enum {}; // expected-warning{{declaration does not declare anything}} int; // expected-warning {{declaration does not declare anything}} int : 1, : 2;