Skip to content

Commit 3cfe38a

Browse files
committed
tool: fix compiletest invalid-target, add newlines and bless
1 parent 39ba489 commit 3cfe38a

File tree

2 files changed

+887
-883
lines changed

2 files changed

+887
-883
lines changed

tests/compiletests/ui/spirv-attr/invalid-target.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@
2828
// * `_trait_method` (in `impl _Trait for ()`)
2929
// * `_fn`
3030
// * 6 on `_entry_param`
31+
3132
// NOTE(firestar99) Using the custom-made `#[spirv_recursive_for_testing(...)]` which expands recursively,
3233
// unlike #[spirv()] which tries to expand as little code as possible for compile performance reasons.
34+
3335
use spirv_std::macros::spirv_recursive_for_testing;
36+
3437
#[spirv_recursive_for_testing(
3538
sampler, block, sampled_image, generic_image_type, // struct-only
3639
vertex, // fn-only
@@ -301,6 +304,7 @@ fn _fn(
301304
_arm => {}
302305
}
303306
}
307+
304308
#[spirv_recursive_for_testing()]
305309
fn _fn_with_generics<
306310
#[spirv(

0 commit comments

Comments
 (0)