aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2022-06-09 11:11:09 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2022-06-09 11:11:09 +0200
commit9212270048c3bd23f56c20a83d4f89b870b2b26e (patch)
tree3785b539c4787497f38770cd6fbc3b56afe226ba /validation
parent29083a76efa600b02d30f32d0393ae53e37887f8 (diff)
parent53e04b3b780bbcf2dd3eb7990c17414742bbfef9 (diff)
downloadsparse-dev-9212270048c3bd23f56c20a83d4f89b870b2b26e.tar.gz
Merge branches 'cgcc-dash-x' and 'fixes'
* cgcc: do not die on '-x assembler' * fix crash when inlining casts of erroneous expressions - allow show_token() on TOKEN_ZERO_IDENT
Diffstat (limited to 'validation')
-rw-r--r--validation/inline-early/bug-bad-token.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/validation/inline-early/bug-bad-token.c b/validation/inline-early/bug-bad-token.c
new file mode 100644
index 00000000..9049bdb4
--- /dev/null
+++ b/validation/inline-early/bug-bad-token.c
@@ -0,0 +1,15 @@
+inline void fun(int x)
+{
+ (typeof(@)) x;
+}
+
+void foo(void)
+{
+ fun;
+}
+
+/*
+ * check-name: bug-bad-token
+ * check-exit-value: 0
+ * check-error-ignore
+ */