[Lldb-commits] [lldb] [lldb] Add LLDB test for UBSan trap frame recognizer (PR #151231)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 30 01:23:31 PDT 2025


================
@@ -0,0 +1,8 @@
+#include <limits.h>
+
+int main() {
+  volatile int a = INT_MAX;
+  volatile int b = 1;
+  volatile int c = a + b;
+  return c;
----------------
DavidSpickett wrote:

I think this could be done in one line. `return INT_MAX + 1;` assuming INT_MAX defaults to `unsigned int` still.

https://github.com/llvm/llvm-project/pull/151231


More information about the lldb-commits mailing list