mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-27 15:31:33 +00:00
gh 6621
This commit is contained in:
@@ -59,6 +59,12 @@ else
|
||||
echo "SUCCESSFUL 0/1"
|
||||
exit 1
|
||||
fi
|
||||
if [[ $($ODIN build ../test_issue_6621.odin $COMMON 2>&1 >/dev/null | grep -c "Error:") -eq 1 ]] ; then
|
||||
echo "SUCCESSFUL 1/1"
|
||||
else
|
||||
echo "SUCCESSFUL 0/1"
|
||||
exit 1
|
||||
fi
|
||||
$ODIN test ../test_pr_6470.odin $COMMON
|
||||
if [[ $($ODIN test ../test_pr_6470.odin -define:TEST_EXPECT_FAILURE=true $COMMON 2>&1 >/dev/null | grep -c "Error:") -eq 1 ]] ; then
|
||||
echo "SUCCESSFUL 1/1"
|
||||
|
||||
10
tests/issues/test_issue_6621.odin
Normal file
10
tests/issues/test_issue_6621.odin
Normal file
@@ -0,0 +1,10 @@
|
||||
// Tests issue #6621 https://github.com/odin-lang/Odin/issues/6621
|
||||
package test_issues
|
||||
|
||||
t: struct {
|
||||
next: ^type_of(t),
|
||||
}
|
||||
|
||||
main :: proc() {
|
||||
_ = t
|
||||
}
|
||||
Reference in New Issue
Block a user