aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-30 21:03:00 +0000
committerChris Lattner <sabre@nondot.org>2003-05-30 21:03:00 +0000
commite236eca7bb52a568379135e486be17c3d5855482 (patch)
treeccb4370d464b5d4ab9af36ff3a5a82a98bc8764e
parent417a7c06e8c0d891820050a8eca4c9b11d7b0377 (diff)
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6454 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/C++Frontend/pointer_arithmetic.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/C++Frontend/pointer_arithmetic.c b/test/C++Frontend/pointer_arithmetic.c
new file mode 100644
index 0000000000..5fedd85e00
--- /dev/null
+++ b/test/C++Frontend/pointer_arithmetic.c
@@ -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;
+}
+