From: Devang Patel Date: Fri, 19 Aug 2011 23:26:54 +0000 (+0000) Subject: Add new test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0b850c2f729521d1b70c7dd21cda135286ef904;p=clang Add new test. Remove one outdated test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138144 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/debug-dead-local-var.c b/test/CodeGen/debug-dead-local-var.c new file mode 100644 index 0000000000..f9ca8f2f29 --- /dev/null +++ b/test/CodeGen/debug-dead-local-var.c @@ -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 index f336d6b268..0000000000 --- a/test/CodeGenObjC/debug-info-fnname.m +++ /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 -