Skip to content

Commit 40a51c7

Browse files
author
Diptorup Deb
committed
Updates test case verifying codegen for intenum literal args.
- Allows expected regex to match even when "nonnull" qualifier was not found on retval pointer argument of a function call.
1 parent 655aa8b commit 40a51c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numba_dpex/tests/codegen/test_intenum_literal_codegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def pass_flags_to_func(a):
4747

4848
pattern = re.compile(
4949
r"call spir_func i32 @\_Z.*bitwise\_or"
50-
r"\_flags.*\(i64\* nonnull %.*, i64 1, i64 2\)"
50+
r"\_flags.*\(i64\*\s(\w+)?\s*%.*, i64 1, i64 2\)"
5151
)
5252

5353
assert re.search(pattern, llvm_ir_mod) is not None

0 commit comments

Comments
 (0)