[cfe-commits] r138144 - in /cfe/trunk/test: CodeGen/debug-dead-local-var.c CodeGenObjC/debug-info-fnname.m

Devang Patel dpatel at apple.com
Fri Aug 19 16:26:55 PDT 2011


Author: dpatel
Date: Fri Aug 19 18:26:54 2011
New Revision: 138144

URL: http://llvm.org/viewvc/llvm-project?rev=138144&view=rev
Log:
Add new test.
Remove one outdated test.

Added:
    cfe/trunk/test/CodeGen/debug-dead-local-var.c
Removed:
    cfe/trunk/test/CodeGenObjC/debug-info-fnname.m

Added: cfe/trunk/test/CodeGen/debug-dead-local-var.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/debug-dead-local-var.c?rev=138144&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/debug-dead-local-var.c (added)
+++ cfe/trunk/test/CodeGen/debug-dead-local-var.c Fri Aug 19 18:26:54 2011
@@ -0,0 +1,14 @@
+// RUN: %clang_cc1 -mllvm -asm-verbose -S -O2 -g %s -o - | FileCheck %s
+// Radar 8122864
+
+// Code is not generated for function foo, but preserve type information of
+// local variable xyz.
+static void foo() {
+// CHECK: DW_TAG_structure_type 
+  struct X { int a; int b; } xyz;
+}
+
+int bar() {
+  foo();
+  return 1;
+}

Removed: cfe/trunk/test/CodeGenObjC/debug-info-fnname.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/debug-info-fnname.m?rev=138143&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenObjC/debug-info-fnname.m (original)
+++ cfe/trunk/test/CodeGenObjC/debug-info-fnname.m (removed)
@@ -1,15 +0,0 @@
-// RUN: %clang_cc1 -emit-llvm -Os -g %s -o - | FileCheck %s
-// Radar 8653152
- at interface A {
-}
- at end
-
-
-// CHECK: llvm.dbg.lv.-.A.title.
- at implementation A
--(int) title {
-  int x = 1;
-  return x;
-}
- at end
-





More information about the cfe-commits mailing list