diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2011-09-30 08:32:17 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2011-09-30 08:32:17 +0000 |
commit | a891a32d3762ee641a29c091d286f2a7432671a5 (patch) | |
tree | 46d7bf8dc01e934f17288c34fde07b78c183db20 /test/Parser/cxx-member-initializers.cpp | |
parent | 8dfac0baaf0f81d3945bcb306480e358ba8d1f08 (diff) |
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
Diffstat (limited to 'test/Parser/cxx-member-initializers.cpp')
-rw-r--r-- | test/Parser/cxx-member-initializers.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Parser/cxx-member-initializers.cpp b/test/Parser/cxx-member-initializers.cpp index 34a725ff43..5c3906836c 100644 --- a/test/Parser/cxx-member-initializers.cpp +++ b/test/Parser/cxx-member-initializers.cpp @@ -8,3 +8,8 @@ struct y { int a; y() : a(4) ; // expected-error {{expected '{'}} }; + +struct z { + int a; + z() : a {} // expected-error {{expected '('}} +}; |