aboutsummaryrefslogtreecommitdiff
path: root/test/errors/parser
diff options
context:
space:
mode:
Diffstat (limited to 'test/errors/parser')
-rw-r--r--test/errors/parser/Nested-Module.fir6
-rw-r--r--test/errors/parser/Statements-in-Circuit.fir5
2 files changed, 11 insertions, 0 deletions
diff --git a/test/errors/parser/Nested-Module.fir b/test/errors/parser/Nested-Module.fir
new file mode 100644
index 00000000..3f06db76
--- /dev/null
+++ b/test/errors/parser/Nested-Module.fir
@@ -0,0 +1,6 @@
+; RUN: firrtl -i %s -o %s.flo -x X -p c | tee %s.out | FileCheck %s
+; CHECK: FIRRTL Parsing Error: Expected a statement here.
+
+circuit Nested-Module :
+ module Top :
+ module Child :
diff --git a/test/errors/parser/Statements-in-Circuit.fir b/test/errors/parser/Statements-in-Circuit.fir
new file mode 100644
index 00000000..5f675e82
--- /dev/null
+++ b/test/errors/parser/Statements-in-Circuit.fir
@@ -0,0 +1,5 @@
+; RUN: firrtl -i %s -o %s.flo -x X -p c | tee %s.out | FileCheck %s
+; CHECK: FIRRTL Parsing Error: Expected a module declaration here.
+
+circuit Statement-in-Circuit :
+ node x : UInt(1)