aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorJosh Triplett <josh@freedesktop.org>2007-07-22 20:29:31 -0700
committerJosh Triplett <josh@freedesktop.org>2007-07-22 20:29:31 -0700
commit3259d842c73dbd08d1b9d062d770582477c4fccc (patch)
treeec6dae6f8671f6eaf176a420453cda9c0686bacf
parent33683d9fd2b3d6d240c539e50e61af0fca0fe5aa (diff)
downloadsparse-dev-3259d842c73dbd08d1b9d062d770582477c4fccc.tar.gz
Add test-suite metadata to bad-cast.c
Signed-off-by: Josh Triplett <josh@freedesktop.org>
-rw-r--r--validation/bad-cast.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/validation/bad-cast.c b/validation/bad-cast.c
index bafd5a25..4eb4a8eb 100644
--- a/validation/bad-cast.c
+++ b/validation/bad-cast.c
@@ -4,3 +4,12 @@ static int foo(int a)
{
return (struct/st *) a;
}
+/*
+ * check-name: Bad cast syntax
+ *
+ * check-error-start
+bad-cast.c:5:16: error: expected declaration
+bad-cast.c:5:16: error: Expected ) at end of cast operator
+bad-cast.c:5:16: error: got /
+ * check-error-end
+ */