================
@@ -355,4 +355,12 @@ void typedef_context() {
// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: narrowing conversion from
'myint64_t' (aka 'long long') to signed type 'int' is implementation-defined
[bugprone-narrowing-conversions]
}
+void testBoolToSignedType() {
+ bool b = true;
----------------
vbvictor wrote:
Can we add these tests as well if not already present
```cpp
auto c1 = static_cast<char>(b);
auto c2 = (char)b;
```
https://github.com/llvm/llvm-project/pull/191696
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits