aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/failing/29 nested ternary
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/failing/29 nested ternary')
-rw-r--r--meson/test cases/failing/29 nested ternary/meson.build3
-rw-r--r--meson/test cases/failing/29 nested ternary/test.json7
2 files changed, 10 insertions, 0 deletions
diff --git a/meson/test cases/failing/29 nested ternary/meson.build b/meson/test cases/failing/29 nested ternary/meson.build
new file mode 100644
index 000000000..f9c2e5f8a
--- /dev/null
+++ b/meson/test cases/failing/29 nested ternary/meson.build
@@ -0,0 +1,3 @@
+project('nested ternary', 'c')
+
+x = true ? (false ? 1 : 0) : 2
diff --git a/meson/test cases/failing/29 nested ternary/test.json b/meson/test cases/failing/29 nested ternary/test.json
new file mode 100644
index 000000000..ba0501372
--- /dev/null
+++ b/meson/test cases/failing/29 nested ternary/test.json
@@ -0,0 +1,7 @@
+{
+ "stdout": [
+ {
+ "line": "test cases/failing/29 nested ternary/meson.build:3:12: ERROR: Nested ternary operators are not allowed."
+ }
+ ]
+}