[Lldb-commits] [lldb] [lldb][test] Consolidate libstdc++ and libc++ vector formatter tests into generic test (PR #146885)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 3 06:48:40 PDT 2025


================
@@ -0,0 +1,40 @@
+#include <stdio.h>
+#include <string>
+#include <vector>
+typedef std::vector<int> int_vect;
+typedef std::vector<std::string> string_vect;
+
+template <class T>
+void by_ref_and_ptr(std::vector<T> &ref, std::vector<T> *ptr) {
+  // Stop here to check by ref
+  return;
+}
+
+int main() {
+  int_vect numbers;
+  (numbers.push_back(1));  // break here
----------------
labath wrote:

I'm not sure what are the parens for, but I wouldn't want my name to go down in history with them :P

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


More information about the lldb-commits mailing list