From c0b850c2f729521d1b70c7dd21cda135286ef904 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 19 Aug 2011 23:26:54 +0000 Subject: [PATCH] Add new test. 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 | 14 ++++++++++++++ test/CodeGenObjC/debug-info-fnname.m | 15 --------------- 2 files changed, 14 insertions(+), 15 deletions(-) create mode 100644 test/CodeGen/debug-dead-local-var.c delete mode 100644 test/CodeGenObjC/debug-info-fnname.m 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 - -- 2.50.1