[cfe-commits] r140458 - /cfe/trunk/test/SemaCXX/generalized-initializers.cpp
Sebastian Redl
sebastian.redl at getdesigned.at
Sat Sep 24 10:48:06 PDT 2011
Author: cornedbee
Date: Sat Sep 24 12:48:06 2011
New Revision: 140458
URL: http://llvm.org/viewvc/llvm-project?rev=140458&view=rev
Log:
Fix the expected error for narrowing conversions in generalized-initializers.cpp to
match what the actual implementation of the error looks like.
Modified:
cfe/trunk/test/SemaCXX/generalized-initializers.cpp
Modified: cfe/trunk/test/SemaCXX/generalized-initializers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/generalized-initializers.cpp?rev=140458&r1=140457&r2=140458&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/generalized-initializers.cpp (original)
+++ cfe/trunk/test/SemaCXX/generalized-initializers.cpp Sat Sep 24 12:48:06 2011
@@ -47,8 +47,8 @@
{ 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() {
More information about the cfe-commits
mailing list