aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/enum.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-01-17 02:55:50 +0000
committerDouglas Gregor <dgregor@apple.com>2009-01-17 02:55:50 +0000
commit8158f692571ba5eaae19e086b76d19319ac503c5 (patch)
tree7ab66b15337277806041214102bface5293af650 /test/Sema/enum.c
parent7d791fd22efd3649f23616ba00b9e98076c27ad4 (diff)
Warn about typedefs of enums without any declarator name. Fixes rdar://problem/6503878
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62397 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/enum.c')
-rw-r--r--test/Sema/enum.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/enum.c b/test/Sema/enum.c
index b42036dc02..ea66c27aef 100644
--- a/test/Sema/enum.c
+++ b/test/Sema/enum.c
@@ -63,3 +63,6 @@ void foo() {
enum xpto; // expected-warning{{ISO C forbids forward references to 'enum' types}}
enum xpto; // expected-warning{{ISO C forbids forward references to 'enum' types}}
}
+
+// <rdar://problem/6503878>
+typedef enum { X = 0 }; // expected-warning{{typedef requires a name}}