r184596 - Aggregate & rename limit debug info tests.

David Blaikie dblaikie at gmail.com
Fri Jun 21 14:23:18 PDT 2013


Author: dblaikie
Date: Fri Jun 21 16:23:18 2013
New Revision: 184596

URL: http://llvm.org/viewvc/llvm-project?rev=184596&view=rev
Log:
Aggregate & rename limit debug info tests.

Added:
    cfe/trunk/test/CodeGenCXX/debug-info-limited.cpp
      - copied, changed from r184594, cfe/trunk/test/CodeGenCXX/debug-info-limit.cpp
Removed:
    cfe/trunk/test/CodeGenCXX/debug-info-limit.cpp
Modified:
    cfe/trunk/test/CodeGenCXX/debug-info-class-limited.cpp

Modified: cfe/trunk/test/CodeGenCXX/debug-info-class-limited.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/debug-info-class-limited.cpp?rev=184596&r1=184595&r2=184596&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/debug-info-class-limited.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/debug-info-class-limited.cpp Fri Jun 21 16:23:18 2013
@@ -9,6 +9,28 @@ struct foo {
 
 typedef foo bar;
 
-bar *f;
-bar g;
+bar *a;
+bar b;
+}
+
+namespace test1 {
+struct foo {
+  int i;
+};
+
+foo *foo(foo *a) {
+  foo *b = new foo(*a);
+  return b;
+}
+}
+
+namespace test2 {
+struct foo {
+  int i;
+};
+
+extern int bar(foo *a);
+int baz(foo *a) {
+  return bar(a);
+}
 }

Removed: cfe/trunk/test/CodeGenCXX/debug-info-limit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/debug-info-limit.cpp?rev=184595&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/debug-info-limit.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/debug-info-limit.cpp (removed)
@@ -1,28 +0,0 @@
-// RUN: %clang  -emit-llvm -g -S %s -o - | FileCheck %s
-
-// TAG_member is used to encode debug info for 'z' in A.
-// CHECK: TAG_member
-class A {
-public:
-  int z;
-};
-
-A *foo (A* x) {
-  A *a = new A(*x);
-  return a;
-}
-
-// Verify that we're not emitting a full definition of B in limit debug mode.
-// RUN: %clang -emit-llvm -g -flimit-debug-info -S %s -o - | FileCheck %s
-// CHECK-NOT: TAG_member
-
-class B {
-public:
-  int y;
-};
-
-extern int bar(B *b);
-int baz(B *b) {
-  return bar(b);
-}
-

Copied: cfe/trunk/test/CodeGenCXX/debug-info-limited.cpp (from r184594, cfe/trunk/test/CodeGenCXX/debug-info-limit.cpp)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/debug-info-limited.cpp?p2=cfe/trunk/test/CodeGenCXX/debug-info-limited.cpp&p1=cfe/trunk/test/CodeGenCXX/debug-info-limit.cpp&r1=184594&r2=184596&rev=184596&view=diff
==============================================================================
    (empty)





More information about the cfe-commits mailing list