From: Sebastian Redl Date: Sat, 24 Sep 2011 17:48:06 +0000 (+0000) Subject: Fix the expected error for narrowing conversions in generalized-initializers.cpp to X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3117e36769bdd666f8bbb9155b17ee1c4b060e38;p=clang Fix the expected error for narrowing conversions in generalized-initializers.cpp to match what the actual implementation of the error looks like. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140458 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/generalized-initializers.cpp b/test/SemaCXX/generalized-initializers.cpp index 6e2bee7e30..cf1b61e683 100644 --- a/test/SemaCXX/generalized-initializers.cpp +++ b/test/SemaCXX/generalized-initializers.cpp @@ -47,8 +47,8 @@ namespace integral { { const int a = {1}; static_assert(a == 1, ""); } { const int a{1, 2}; } // expected-error {{excess elements}} { const int a = {1, 2}; } // expected-error {{excess elements}} - { const short a{100000}; } // expected-error {{narrowing conversion}} - { const short a = {100000}; } // expected-error {{narrowing conversion}} + { const short a{100000}; } // expected-error {{cannot be narrowed}} + { const short a = {100000}; } // expected-error {{cannot be narrowed}} } int function_call() {