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
{ 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() {