[Lldb-commits] [lldb] r301280 - Name the C++ source files for two tests correctly.
Sean Callanan via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 24 16:58:36 PDT 2017
Author: spyffe
Date: Mon Apr 24 18:58:36 2017
New Revision: 301280
URL: http://llvm.org/viewvc/llvm-project?rev=301280&view=rev
Log:
Name the C++ source files for two tests correctly.
Added:
lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/llvm-style/main.cpp
- copied, changed from r301279, lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/llvm-style/main.cc
lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/symbols/main.cpp
- copied, changed from r301279, lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/symbols/main.cc
Removed:
lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/llvm-style/main.cc
lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/symbols/main.cc
Removed: lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/llvm-style/main.cc
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/llvm-style/main.cc?rev=301279&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/llvm-style/main.cc (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/llvm-style/main.cc (removed)
@@ -1,36 +0,0 @@
-//===-- main.cc -------------------------------------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LIDENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-namespace n {
- struct D {
- int i;
- static int anInt() { return 2; }
- int dump() { return i; }
- };
-
- class C {
- public:
- int foo(D *D);
- };
-}
-
-using namespace n;
-
-int C::foo(D* D) {
- return D->dump(); //% self.expect("expression -- D->dump()", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["int", "2"])
- //% self.expect("expression -- D::anInt()", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["int", "2"])
-
-}
-
-int main (int argc, char const *argv[])
-{
- D myD { D::anInt() };
- C().foo(&myD);
- return 0;
-}
Copied: lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/llvm-style/main.cpp (from r301279, lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/llvm-style/main.cc)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/llvm-style/main.cpp?p2=lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/llvm-style/main.cpp&p1=lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/llvm-style/main.cc&r1=301279&r2=301280&rev=301280&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/llvm-style/main.cc (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/llvm-style/main.cpp Mon Apr 24 18:58:36 2017
@@ -1,4 +1,4 @@
-//===-- main.cc -------------------------------------------------*- C++ -*-===//
+//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
Removed: lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/symbols/main.cc
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/symbols/main.cc?rev=301279&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/symbols/main.cc (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/symbols/main.cc (removed)
@@ -1,40 +0,0 @@
-//===-- main.cc -------------------------------------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LIDENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-void *D = 0;
-
-class D {
- static int i;
-};
-
-int D::i = 3;
-
-namespace errno {
- int j = 4;
-};
-
-int twice(int n)
-{
- return n * 2; //% self.expect("expression -- D::i", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["int", "3"])
- //% self.expect("expression -- D", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["void"])
- //% self.expect("expression -- errno::j", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["int", "4"])
-}
-
-const char getAChar()
-{
- const char D[] = "Hello world";
- return D[0]; //% self.expect("expression -- D::i", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["int", "3"])
- //% self.expect("expression -- D", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["char", "Hello"])
-}
-
-int main (int argc, char const *argv[])
-{
- int six = twice(3);
- return 0;
-}
Copied: lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/symbols/main.cpp (from r301279, lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/symbols/main.cc)
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/symbols/main.cpp?p2=lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/symbols/main.cpp&p1=lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/symbols/main.cc&r1=301279&r2=301280&rev=301280&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/symbols/main.cc (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/symbols/main.cpp Mon Apr 24 18:58:36 2017
@@ -1,4 +1,4 @@
-//===-- main.cc -------------------------------------------------*- C++ -*-===//
+//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
More information about the lldb-commits
mailing list