diff options
| author | David Blaikie <dblaikie@gmail.com> | 2012-05-15 16:56:36 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2012-05-15 16:56:36 +0000 |
| commit | 7555b6a4e51e9cb0c54da10b8951104306cfdcbb (patch) | |
| tree | 0ac4aca829d7d05de81a789e30a4b7add22523b7 /clang/test/CXX/temp/temp.spec/p5.cpp | |
| parent | 80297b1d90de16b8f574848a9a2fb46f957f246a (diff) | |
| download | bcm5719-llvm-7555b6a4e51e9cb0c54da10b8951104306cfdcbb.tar.gz bcm5719-llvm-7555b6a4e51e9cb0c54da10b8951104306cfdcbb.zip | |
Improve some of the conversion warnings to fire on conversion to bool.
Moves the bool bail-out down a little in SemaChecking - so now
-Wnull-conversion and -Wliteral-conversion can fire when the target type is
bool.
Also improve the wording/details in the -Wliteral-conversion warning to match
the -Wconstant-conversion.
llvm-svn: 156826
Diffstat (limited to 'clang/test/CXX/temp/temp.spec/p5.cpp')
| -rw-r--r-- | clang/test/CXX/temp/temp.spec/p5.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CXX/temp/temp.spec/p5.cpp b/clang/test/CXX/temp/temp.spec/p5.cpp index 0e69a26b04e..ba92d41e3e8 100644 --- a/clang/test/CXX/temp/temp.spec/p5.cpp +++ b/clang/test/CXX/temp/temp.spec/p5.cpp @@ -14,7 +14,7 @@ struct X0 { }; template<typename T> -T X0<T>::value = 3.14; // expected-warning{{implicit conversion turns literal floating-point number into integer}} +T X0<T>::value = 3.14; // expected-warning{{implicit conversion from 'double' to 'int' changes value from 3.14 to 3}} template struct X0<int>; // expected-note{{previous explicit instantiation}} \ expected-note{{requested here}} |

