mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
4a1cad673c
Radar 8122864. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107027 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
308 B
C
15 lines
308 B
C
// RUN: %llvmgcc -S -O2 -g %s -o - | llc -O2 -o %t.s
|
|
// RUN: grep DW_TAG_structure_type %t.s | count 2
|
|
// Radar 8122864
|
|
|
|
// Code is not generated for function foo, but preserve type information of
|
|
// local variable xyz.
|
|
static foo() {
|
|
struct X { int a; int b; } xyz;
|
|
}
|
|
|
|
int bar() {
|
|
foo();
|
|
return 1;
|
|
}
|