diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-13 06:24:26 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-13 06:24:26 +0000 |
commit | a131d0fc0af9f79c90e7654231041b2495d355a9 (patch) | |
tree | aaed8f10227cce77b594df588d2c05b50dc7cb0b /test/Parser/cxx-class.cpp | |
parent | 44eac33ae12df384f3f002102f919f603bee330f (diff) |
Complain when an unnamed enumeration has no enumerations (in
C++). Fixes PR7466.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-class.cpp')
-rw-r--r-- | test/Parser/cxx-class.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Parser/cxx-class.cpp b/test/Parser/cxx-class.cpp index 4abbbc5b9b..57831a463b 100644 --- a/test/Parser/cxx-class.cpp +++ b/test/Parser/cxx-class.cpp @@ -7,7 +7,7 @@ protected: 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; |