1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Testcase for r54520.

llvm-svn: 54521
This commit is contained in:
Nick Lewycky 2008-08-08 07:00:26 +00:00
parent 4708df4776
commit 732ffeba9e

View File

@ -0,0 +1,14 @@
// RUN: %llvmgcc -S %s -o - | grep {i8 1}
// PR2603
struct A {
char num_fields;
};
struct B {
char a, b[1];
};
const struct A Foo = {
(char *)(&( (struct B *)(16) )->b[0]) - (char *)(16)
};