parent
2597722e07
commit
2de80d601a
|
@ -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;
|
||||
}
|
|
@ -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
|
||||
|
Loading…
Reference in New Issue