[validation] remove tests that have landed in cts
Change-Id: Icf57f1c919b9498385918c9553310d26811c00ed Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/30200 Commit-Queue: Sarah Mashayekhi <sarahmashay@google.com> Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
parent
ff267ca60e
commit
53380f9ed7
|
@ -1,23 +0,0 @@
|
||||||
# Copyright 2020 The Tint Authors.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
fn main() -> void {
|
|
||||||
var a:f32 = func1();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
fn func1() -> f32 {
|
|
||||||
var a:i32 = 2.1;
|
|
||||||
return a;
|
|
||||||
}
|
|
|
@ -1,12 +0,0 @@
|
||||||
# v-switch03: line 7: the case selector values must have the same type as the selector expression
|
|
||||||
|
|
||||||
[[stage(vertex)]]
|
|
||||||
fn main() -> void {
|
|
||||||
var a: i32 = -2;
|
|
||||||
switch (a) {
|
|
||||||
case 2u:{}
|
|
||||||
default: {}
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
# v-switch03: line 7: the case selector values must have the same type as the selector expression
|
|
||||||
|
|
||||||
[[stage(vertex)]]
|
|
||||||
fn main() -> void {
|
|
||||||
var a: u32 = 2;
|
|
||||||
switch (a) {
|
|
||||||
case -1:{}
|
|
||||||
default: {}
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
# v-switch04: line 9: a literal value must not appear more than once in the case selectors for a
|
|
||||||
# switch statement: '0'
|
|
||||||
|
|
||||||
[[stage(vertex)]]
|
|
||||||
fn main() -> void {
|
|
||||||
var a: u32 = 2;
|
|
||||||
switch (a) {
|
|
||||||
case 10u: {}
|
|
||||||
case 10u: {}
|
|
||||||
case 10u: {}
|
|
||||||
default: {}
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
# v-switch05: line 9: a fallthrough statement must not appear as the last statement in last clause
|
|
||||||
# of a switch
|
|
||||||
|
|
||||||
[[stage(vertex)]]
|
|
||||||
fn main() -> void {
|
|
||||||
var a: i32 = -2;
|
|
||||||
switch (a) {
|
|
||||||
default: {
|
|
||||||
fallthrough;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
|
@ -1,13 +0,0 @@
|
||||||
# v-0008: line 6: switch statement must have exactly one default clause
|
|
||||||
|
|
||||||
[[stage(vertex)]]
|
|
||||||
fn main() -> void {
|
|
||||||
var a: i32 = 2;
|
|
||||||
switch (a) {
|
|
||||||
case 2: {}
|
|
||||||
default: {}
|
|
||||||
default: {}
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
# v-0008: line 6: switch statement must have exactly one default clause
|
|
||||||
|
|
||||||
[[stage(vertex)]]
|
|
||||||
fn main() -> void {
|
|
||||||
var a: i32 = 2;
|
|
||||||
switch (a) {
|
|
||||||
case 2: {}
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
# v-switch01: line 6: switch statement selector expression must be of a scalar integer type
|
|
||||||
|
|
||||||
[[stage(vertex)]]
|
|
||||||
fn main() -> void {
|
|
||||||
var a: f32 = 3.14;
|
|
||||||
switch (a) {
|
|
||||||
default: {}
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
# Copyright 2020 The Tint Authors.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
# Vertex shader
|
|
||||||
var<private> a : i32;
|
|
||||||
|
|
||||||
[[stage(vertex)]]
|
|
||||||
fn main() -> void {
|
|
||||||
a = 2;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
# Copyright 2020 The Tint Authors.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
[[stage(fragment)]]
|
|
||||||
fn main() -> void {
|
|
||||||
var a : f32 = 2.0;
|
|
||||||
{ a = 3.14;}
|
|
||||||
return;
|
|
||||||
}
|
|
Loading…
Reference in New Issue