[Lldb-commits] [PATCH] D59088: Fix TestDataFormatter.test uninitialized variable

Jan Kratochvil via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 7 09:38:39 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL355611: Fix TestDataFormatter.test uninitialized variable (authored by jankratochvil, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D59088?vs=189685&id=189735#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59088/new/

https://reviews.llvm.org/D59088

Files:
  lldb/trunk/lit/Reproducer/Functionalities/Inputs/DataFormatter.in
  lldb/trunk/lit/Reproducer/Functionalities/Inputs/foo.cpp
  lldb/trunk/lit/Reproducer/Functionalities/TestDataFormatter.test


Index: lldb/trunk/lit/Reproducer/Functionalities/Inputs/foo.cpp
===================================================================
--- lldb/trunk/lit/Reproducer/Functionalities/Inputs/foo.cpp
+++ lldb/trunk/lit/Reproducer/Functionalities/Inputs/foo.cpp
@@ -8,6 +8,6 @@
 };
 
 int main(int argc, char **argv) {
-  Foo foo(1, 2.22);
+  static Foo foo(1, 2.22);
   return 0;
 }
Index: lldb/trunk/lit/Reproducer/Functionalities/Inputs/DataFormatter.in
===================================================================
--- lldb/trunk/lit/Reproducer/Functionalities/Inputs/DataFormatter.in
+++ lldb/trunk/lit/Reproducer/Functionalities/Inputs/DataFormatter.in
@@ -1,7 +1,7 @@
 breakpoint set -f foo.cpp -l 11
 run
-frame var
+frame var foo
 next
-frame var
+frame var foo
 cont
 reproducer generate
Index: lldb/trunk/lit/Reproducer/Functionalities/TestDataFormatter.test
===================================================================
--- lldb/trunk/lit/Reproducer/Functionalities/TestDataFormatter.test
+++ lldb/trunk/lit/Reproducer/Functionalities/TestDataFormatter.test
@@ -3,7 +3,7 @@
 # This tests that data formatters continue to work when replaying a reproducer.
 
 # RUN: rm -rf %t.repro
-# RUN: %clang %S/Inputs/foo.cpp -g -o %t.out
+# RUN: %clangxx %S/Inputs/foo.cpp -g -o %t.out
 
 # RUN: %lldb -x -b -s %S/Inputs/DataFormatter.in --capture %t.repro %t.out | FileCheck %s
 # RUN: %lldb --replay %t.repro | FileCheck %s


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59088.189735.patch
Type: text/x-patch
Size: 1431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190307/07bc9b8e/attachment.bin>


More information about the lldb-commits mailing list