2024-05-04 18:58:31 +10:00
|
|
|
//@ revisions: one two three four
|
2021-07-23 16:19:22 +03:00
|
|
|
//@ compile-flags: --crate-type=rlib --target=aarch64-unknown-linux-gnu
|
|
|
|
|
//@ needs-llvm-components: aarch64
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//@ [one] check-fail
|
|
|
|
|
//@ [one] compile-flags: -C target-feature=+paca
|
|
|
|
|
//@ [two] check-fail
|
|
|
|
|
//@ [two] compile-flags: -C target-feature=-pacg,+pacg
|
|
|
|
|
//@ [three] check-fail
|
|
|
|
|
//@ [three] compile-flags: -C target-feature=+paca,+pacg,-paca
|
|
|
|
|
//@ [four] build-pass
|
|
|
|
|
//@ [four] compile-flags: -C target-feature=-paca,+pacg -C target-feature=+paca
|
2025-10-13 15:30:26 +02:00
|
|
|
//@ ignore-backends: gcc
|
2025-10-17 16:20:44 +02:00
|
|
|
//@ add-core-stubs
|
2025-10-17 16:23:33 +02:00
|
|
|
// FIXME(#147881): *disable* the features again for minicore as otherwise that will fail to build.
|
|
|
|
|
//@ core-stubs-compile-flags: -C target-feature=-pacg,-paca
|
2025-10-17 16:20:44 +02:00
|
|
|
#![feature(no_core)]
|
2021-07-23 16:19:22 +03:00
|
|
|
#![no_core]
|
|
|
|
|
|
2025-10-17 16:20:44 +02:00
|
|
|
extern crate minicore;
|
|
|
|
|
use minicore::*;
|
2022-01-31 13:04:27 +00:00
|
|
|
|
|
|
|
|
fn main() {}
|
2025-03-23 15:50:51 +03:00
|
|
|
|
|
|
|
|
//[one]~? ERROR the target features paca, pacg must all be either enabled or disabled together
|
|
|
|
|
//[two]~? ERROR the target features paca, pacg must all be either enabled or disabled together
|
|
|
|
|
//[three]~? ERROR the target features paca, pacg must all be either enabled or disabled together
|