Skip to content

Commit 9e68dfa

Browse files
committed
Add check-only error tests
1 parent b77037e commit 9e68dfa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// RUN: circt-opt -pass-pipeline='builtin.module(firrtl.circuit(firrtl-infer-domains{mode=check}))' %s --verify-diagnostics --split-input-file
2+
3+
// CHECK-LABEL: IncompleteDomainInformation
4+
firrtl.circuit "IncompleteDomainInformation" {
5+
firrtl.domain @ClockDomain
6+
7+
firrtl.module private @Foo(
8+
// expected-error @below {{missing "ClockDomain" association for port "x"}}
9+
in %x: !firrtl.uint<1>
10+
) {}
11+
12+
firrtl.module @IncompleteDomainInformation() {}
13+
}

0 commit comments

Comments
 (0)