diff options
Diffstat (limited to 'test/SemaCXX/cxx0x-initializer-references.cpp')
| -rw-r--r-- | test/SemaCXX/cxx0x-initializer-references.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/SemaCXX/cxx0x-initializer-references.cpp b/test/SemaCXX/cxx0x-initializer-references.cpp index 390047ea07521..c64511193b6e7 100644 --- a/test/SemaCXX/cxx0x-initializer-references.cpp +++ b/test/SemaCXX/cxx0x-initializer-references.cpp @@ -72,10 +72,9 @@ namespace reference { } void edge_cases() { - // FIXME: very poor error message - int const &b({0}); // expected-error {{could not bind}} + int const &b({0}); // expected-error {{list-initializer for non-class type 'const int &' must not be parenthesized}} + const int (&arr)[3] ({1, 2, 3}); // expected-error {{list-initializer for non-class type 'const int (&)[3]' must not be parenthesized}} } - } namespace PR12182 { |
