Two improvements to initializer parsing:
1. If we hit a semantic error, try harder to recover to emit
   diagnostics for later initializer errors (PR2241).
2. Don't leak parsed initializers on an error.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49998 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Parser/recovery-2.c b/test/Parser/recovery-2.c
new file mode 100644
index 0000000..4451232
--- /dev/null
+++ b/test/Parser/recovery-2.c
@@ -0,0 +1,8 @@
+// RUN: clang -fsyntax-only -verify -pedantic %s
+
+
+// PR2241
+float f[] = { 
+  1e,            // expected-error {{exponent}}
+  1ee0           // expected-error {{exponent}}
+};