aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorJosh Triplett <josh@freedesktop.org>2007-02-22 19:41:57 -0800
committerJosh Triplett <josh@freedesktop.org>2007-02-22 19:41:57 -0800
commitb205d97ace2dd300c195ae5fdd12a4c7dfaa89e6 (patch)
tree432a67be5186f478fb4eab40a9d5c6aa488c67dd /validation
parente726fe91c1c0323fc704168a010a7ca7670c1f5e (diff)
downloadsparse-dev-b205d97ace2dd300c195ae5fdd12a4c7dfaa89e6.tar.gz
Add test case for double semicolon in structure declaration.
Signed-off-by: Josh Triplett <josh@freedesktop.org>
Diffstat (limited to 'validation')
-rw-r--r--validation/double-semicolon.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/validation/double-semicolon.c b/validation/double-semicolon.c
new file mode 100644
index 00000000..039236f4
--- /dev/null
+++ b/validation/double-semicolon.c
@@ -0,0 +1,6 @@
+#include <string.h>
+static void test(void)
+{
+ struct { int foo;; } val;
+ memset(&val, 0, sizeof(val));
+}