summaryrefslogtreecommitdiffstats
path: root/src/test/ui/feature-gates/feature-gate-abi_ptx.rs
blob: e3405641ecd8256fd05d7234fec9ec5f55a1cd62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// needs-llvm-components: nvptx
// compile-flags: --target=nvptx64-nvidia-cuda --crate-type=rlib
#![no_core]
#![feature(no_core, lang_items)]
#[lang="sized"]
trait Sized { }

extern "ptx-kernel" fn fu() {} //~ ERROR PTX ABIs are experimental

trait T {
    extern "ptx-kernel" fn mu(); //~ ERROR PTX ABIs are experimental
    extern "ptx-kernel" fn dmu() {} //~ ERROR PTX ABIs are experimental
}

struct S;
impl T for S {
    extern "ptx-kernel" fn mu() {} //~ ERROR PTX ABIs are experimental
}

impl S {
    extern "ptx-kernel" fn imu() {} //~ ERROR PTX ABIs are experimental
}

type TAU = extern "ptx-kernel" fn(); //~ ERROR PTX ABIs are experimental

extern "ptx-kernel" {} //~ ERROR PTX ABIs are experimental