-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix zero size array handling in slangc #6399
Conversation
Fixes shader-slang#2890 1. Fix zero size array handling in slangc 2. Add new zero size array diagnostic test.
/format |
🌈 Formatted, please merge the changes from this PR |
Format code for PR shader-slang#6399
@expipiplus1 @jkwak-work for Cc. |
@@ -2,12 +2,12 @@ | |||
|
|||
// Test that array size cannot be zero | |||
|
|||
//TEST:SIMPLE: | |||
//DIAGNOSTIC_TEST:SIMPLE: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For new tests, we use filecheck instead of a separate expected result file.
Here, you write:
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, updated.
func bar() -> int[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before this line, you can write:
//CHECK: ([[# @LINE+1]]): error 30025
To match for (13): error 30025
in the output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, updated.
Fixes #2890