[llvm-commits] CVS: llvm/test/Regression/C++Frontend/pointer_arithmetic.c
Chris Lattner
lattner at cs.uiuc.edu
Fri May 30 16:04:01 PDT 2003
Changes in directory llvm/test/Regression/C++Frontend:
pointer_arithmetic.c added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes:
Index: llvm/test/Regression/C++Frontend/pointer_arithmetic.c
diff -c /dev/null llvm/test/Regression/C++Frontend/pointer_arithmetic.c:1.1
*** /dev/null Fri May 30 16:03:10 2003
--- llvm/test/Regression/C++Frontend/pointer_arithmetic.c Fri May 30 16:03:00 2003
***************
*** 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;
+ }
+
More information about the llvm-commits
mailing list