[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:
Sarah Mashayekhi 2020-10-15 15:26:13 +00:00 committed by Commit Bot service account
parent ff267ca60e
commit 53380f9ed7
10 changed files with 0 additions and 153 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}