================
@@ -90,6 +92,12 @@ long t9(int a, int b) {
// CHECK-NOTES-ALL: :[[@LINE-2]]:10: note: make conversion explicit to
silence this warning
// CHECK-NOTES-ALL: :[[@LINE-3]]:10: note: perform multiplication in a wider
type
}
+int64_t t10() {
+ return 512 * 1024;
+ // CHECK-NOTES-ALL: :[[@LINE-1]]:10: warning: performing an implicit
widening conversion to type 'int64_t' (aka 'long long') of a multiplication
performed in type 'int'
+ // CHECK-NOTES-ALL: :[[@LINE-2]]:10: note: make conversion explicit to
silence this warning
+ // CHECK-NOTES-ALL: :[[@LINE-3]]:10: note: perform multiplication in a wider
type
+}
----------------
unterumarmung wrote:
I guess we should check for fixit here?
https://github.com/llvm/llvm-project/pull/198258
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits