commit | a891a32d3762ee641a29c091d286f2a7432671a5 | [log] [tgz] |
---|---|---|
author | Sebastian Redl <sebastian.redl@getdesigned.at> | Fri Sep 30 08:32:17 2011 +0000 |
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | Fri Sep 30 08:32:17 2011 +0000 |
tree | 46d7bf8dc01e934f17288c34fde07b78c183db20 | |
parent | 8dfac0baaf0f81d3945bcb306480e358ba8d1f08 [diff] [blame] |
Fix a bug in the token caching for inline constructors in C++11, and improve error recovery in both dialects. This should fix the GCC test suite failures as well. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140847 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Parser/cxx-member-initializers.cpp b/test/Parser/cxx-member-initializers.cpp index 34a725f..5c39068 100644 --- a/test/Parser/cxx-member-initializers.cpp +++ b/test/Parser/cxx-member-initializers.cpp
@@ -8,3 +8,8 @@ int a; y() : a(4) ; // expected-error {{expected '{'}} }; + +struct z { + int a; + z() : a {} // expected-error {{expected '('}} +};