mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
new testcase reduced from the MultiSource/Applications/d failure last night.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20490 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bf4515e218
commit
be876b6036
14
test/CFrontend/2005-03-06-OffsetOfStructCrash.c
Normal file
14
test/CFrontend/2005-03-06-OffsetOfStructCrash.c
Normal file
@ -0,0 +1,14 @@
|
||||
// RUN: %llvmgcc %s -S -o -
|
||||
|
||||
struct Y {};
|
||||
struct XXX {
|
||||
struct Y F;
|
||||
};
|
||||
|
||||
void test1() {
|
||||
(int)&((struct XXX*)(((void *)0)))->F;
|
||||
}
|
||||
|
||||
void test2() {
|
||||
&((struct XXX*)(((void *)0)))->F;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user