]> granicus.if.org Git - clang/commitdiff
Add new test.
authorDevang Patel <dpatel@apple.com>
Fri, 19 Aug 2011 23:26:54 +0000 (23:26 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 19 Aug 2011 23:26:54 +0000 (23:26 +0000)
Remove one outdated test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138144 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/debug-dead-local-var.c [new file with mode: 0644]
test/CodeGenObjC/debug-info-fnname.m [deleted file]

diff --git a/test/CodeGen/debug-dead-local-var.c b/test/CodeGen/debug-dead-local-var.c
new file mode 100644 (file)
index 0000000..f9ca8f2
--- /dev/null
@@ -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;
+}
diff --git a/test/CodeGenObjC/debug-info-fnname.m b/test/CodeGenObjC/debug-info-fnname.m
deleted file mode 100644 (file)
index f336d6b..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// RUN: %clang_cc1 -emit-llvm -Os -g %s -o - | FileCheck %s
-// Radar 8653152
-@interface A {
-}
-@end
-
-
-// CHECK: llvm.dbg.lv.-.A.title.
-@implementation A
--(int) title {
-  int x = 1;
-  return x;
-}
-@end
-