aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/enum.c
diff options
context:
space:
mode:
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}}