aboutsummaryrefslogtreecommitdiff
path: root/test/lang/c
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-07-18 20:39:26 +0000
committerSean Callanan <scallanan@apple.com>2012-07-18 20:39:26 +0000
commit4e725034c8381787804dc1858095e9b452edb55b (patch)
treecc1119afc1ff5a1283231d51076fdfdc562554be /test/lang/c
parent090d19b89ab067916de9405aa5579c947e7ce41b (diff)
downloadlldb-4e725034c8381787804dc1858095e9b452edb55b.tar.gz
Removed a hack that gives zero-length arrays a
single element. Also modified our struct test case to test this. git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@160449 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lang/c')
-rw-r--r--test/lang/c/struct_types/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lang/c/struct_types/main.c b/test/lang/c/struct_types/main.c
index d521ec7a8..b3be185dc 100644
--- a/test/lang/c/struct_types/main.c
+++ b/test/lang/c/struct_types/main.c
@@ -10,6 +10,7 @@ int main (int argc, char const *argv[])
{
struct point_tag {
int x;
+ char padding[0];
int y;
}; // Set break point at this line.
@@ -17,7 +18,7 @@ int main (int argc, char const *argv[])
struct point_tag bottom_left;
struct point_tag top_right;
};
- struct point_tag pt = { 2, 3 }; // This is the first executable statement.
- struct rect_tag rect = {{1,2}, {3,4}};
+ struct point_tag pt = { 2, {}, 3 }; // This is the first executable statement.
+ struct rect_tag rect = {{1, {}, 2}, {3, {}, 4}};
return 0;
}