aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-09-30 03:45:27 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-09-30 03:45:27 +0200
commitfded889cd4b3e0b5eef95440d3f96723e76a78e9 (patch)
treeded6cc96dae997390c6419e1f38e9be2a2fba07b /validation
parent0ca5ee15e9836fca976479fef8d90594d1e97adb (diff)
parentb8c706f3d0116b79f3935f36162fae610311c163 (diff)
downloadsparse-dev-fded889cd4b3e0b5eef95440d3f96723e76a78e9.tar.gz
Merge branch 'relax-constexpr' into tip
Diffstat (limited to 'validation')
-rw-r--r--validation/constexpr-constcond.c10
-rw-r--r--validation/ioc-typecheck.c4
2 files changed, 10 insertions, 4 deletions
diff --git a/validation/constexpr-constcond.c b/validation/constexpr-constcond.c
new file mode 100644
index 00000000..d98da3dc
--- /dev/null
+++ b/validation/constexpr-constcond.c
@@ -0,0 +1,10 @@
+extern int var;
+
+static int a[] = {
+ [0 ? var : 1] = 0,
+ [1 ? 2 : var] = 0,
+};
+
+/*
+ * check-name: constexprness in constant conditionals
+ */
diff --git a/validation/ioc-typecheck.c b/validation/ioc-typecheck.c
index 34b37d31..7780773b 100644
--- a/validation/ioc-typecheck.c
+++ b/validation/ioc-typecheck.c
@@ -4,8 +4,4 @@ static unsigned iocnrs[] = {
};
/*
* check-name: integer constant & conditional expression
- * check-known-to-fail
- *
- * check-error-start
- * check-error-end
*/