mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-16 08:26:07 +00:00
New testcase
llvm-svn: 6454
This commit is contained in:
parent
d137d6ba65
commit
1656f61b93
21
llvm/test/Regression/C++Frontend/pointer_arithmetic.c
Normal file
21
llvm/test/Regression/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…
x
Reference in New Issue
Block a user