Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
master
rust/tests/codegen-llvm/instrument-xray/basic.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
259 B
Rust
Raw Permalink Normal View History

Codegen tests for -Z instrument-xray Let's add at least some tests to verify that this option is accepted and produces expected LLVM attributes. More tests can be added later with attribute support.
2022-10-02 10:25:49 +09:00
// Checks that `-Z instrument-xray` produces expected instrumentation.
//
Test XRay only for supported targets Now that the compiler accepts "-Z instrument-xray" option only when targeting one of the supported targets, make sure to not run the codegen tests where the compiler will fail. Like with other compiletests, we don't have access to internals, so simply hardcode a list of supported architectures here.
2022-10-02 12:58:05 +09:00
//@ needs-xray
Automatically enable cross-crate inlining for small functions
2023-10-06 20:29:42 -04:00
//@ compile-flags: -Z instrument-xray=always -Copt-level=0
Codegen tests for -Z instrument-xray Let's add at least some tests to verify that this option is accepted and produces expected LLVM attributes. More tests can be added later with attribute support.
2022-10-02 10:25:49 +09:00
#![crate_type = "lib"]
// CHECK: attributes #{{.*}} "function-instrument"="xray-always"
pub fn function() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 510ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API