Skip to content

Commit 570350c

Browse files
committed
Add a xfail test for scalars on args_test
1 parent d51df8d commit 570350c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/aot/args_test.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,22 @@ def compute(a, b):
7777
module_str,
7878
)
7979

80+
@unittest.expectedFailure
81+
def testProcToJitScalarArgs(self):
82+
"""Expected to fail missing jittable support for IrValueScalar"""
83+
84+
class BasicModule(CompiledModule):
85+
def foobar(self, a=AbstractI32, b=AbstractI32):
86+
return self.compute(a, b)
87+
88+
@jittable
89+
def compute(a, b):
90+
return a + b
91+
92+
inst = BasicModule(context=Context())
93+
module_str = str(CompiledModule.get_mlir_module(inst))
94+
print(module_str)
95+
8096

8197
if __name__ == "__main__":
8298
logging.basicConfig(level=logging.DEBUG)

0 commit comments

Comments
 (0)