[PATCH] D48958: [clang][ubsan] Implicit Cast Sanitizer - integer truncation - clang part

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 26 04:19:25 PDT 2018


lebedev.ri added inline comments.


================
Comment at: test/CodeGenCXX/catch-implicit-integer-truncations.cpp:8-33
+// ========================================================================== //
+// Check that explicit cast does not interfere with implicit cast
+// ========================================================================== //
+// These contain one implicit truncating cast, and one explicit truncating cast.
+// We want to make sure that we still diagnose the implicit cast.
+
+// Implicit truncation after explicit truncation.
----------------
@rsmith these tests //should// be equivalent to what you have brought up, so that situation was already tested.


Repository:
  rC Clang

https://reviews.llvm.org/D48958





More information about the cfe-commits mailing list