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:
parent
4708df4776
commit
732ffeba9e
14
test/FrontendC/2008-08-07-GEPIntToPtr.c
Normal file
14
test/FrontendC/2008-08-07-GEPIntToPtr.c
Normal 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)
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user