resolver: Validate that a call statement has no return value

Also split out validation tests from call_test.cc into call_validation_test.cc.

Bug: tint:886
Change-Id: I1e1dee9b7c348363e89080cdecd3119cc004658f
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54063
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
Ben Clayton
2021-06-11 13:22:27 +00:00
parent 0f1efe04c3
commit 7fe0106b12
24 changed files with 288 additions and 197 deletions

View File

@@ -97,7 +97,7 @@ fn f1(p0 : f32, p1 : i32) -> f32 {
[[stage(fragment)]]
fn main() {
f1(1.0, 2);
ignore(f1(1.0, 2));
}
let declaration_order_check_0 : i32 = 1;