mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6454 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
417a7c06e8
commit
e236eca7bb
21
test/C++Frontend/pointer_arithmetic.c
Normal file
21
test/C++Frontend/pointer_arithmetic.c
Normal file
@ -0,0 +1,21 @@
|
||||
typedef struct {
|
||||
int w;
|
||||
// float x;
|
||||
// double y;
|
||||
// long long z;
|
||||
} S1Ty;
|
||||
|
||||
typedef struct {
|
||||
S1Ty A, B;
|
||||
} S2Ty;
|
||||
|
||||
void takeS1(S1Ty *V) {}
|
||||
void takeVoid(void *P) {}
|
||||
|
||||
int main() {
|
||||
S2Ty E;
|
||||
takeS1(&E.B);
|
||||
takeVoid(&E);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user