mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
Testcase for preceding FE fix
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45144 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fd2025e9db
commit
9bc55bcbc0
18
test/CFrontend/2007-12-VarArrayDebug.c
Normal file
18
test/CFrontend/2007-12-VarArrayDebug.c
Normal file
@ -0,0 +1,18 @@
|
||||
// RUN: %llvmgcc -S -g -O %s -o - | llvm-as | llc
|
||||
// RUN: %llvmgcc -S -g %s -o - | llvm-as | llc
|
||||
|
||||
extern void foo (void);
|
||||
|
||||
static
|
||||
void baz (int i)
|
||||
{
|
||||
foo ();
|
||||
typedef char A[i];
|
||||
struct { A b; } *x = 0;
|
||||
}
|
||||
|
||||
void
|
||||
bar (i)
|
||||
{
|
||||
baz (i);
|
||||
}
|
Loading…
Reference in New Issue
Block a user