Add new test.

Remove one outdated test.

llvm-svn: 138144
This commit is contained in:
Devang Patel 2011-08-19 23:26:54 +00:00
parent 2597722e07
commit 2de80d601a
2 changed files with 14 additions and 15 deletions

View File

@ -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;
}

View File

@ -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