summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/serialization/gh-6892.slang9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/bugs/serialization/gh-6892.slang b/tests/bugs/serialization/gh-6892.slang
new file mode 100644
index 000000000..1235c292c
--- /dev/null
+++ b/tests/bugs/serialization/gh-6892.slang
@@ -0,0 +1,9 @@
+//TEST:COMPILE: tests/bugs/serialization/gh-6892.slang -o tests/bugs/serialization/gh-6892.slang-module
+
+// assertion failure when compiling to a slang module
+
+void f()
+{
+ for (int i = 0; i < 1; ++i)
+ ;
+}