about summary refs log tree commit diff
path: root/tests/ui/self-profile/pretty_print_no_ice.rs
blob: 71b15e82650442570fd8539ae1957b3b75b030b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Checks that when we use `-Zself-profile-events=args`, it is possible to pretty print paths
// using `trimmed_def_paths` even without producing diagnostics.
//
// Issue: <https://github.com/rust-lang/rust/issues/144457>.

//@ compile-flags: -Zself-profile={{build-base}} -Zself-profile-events=args
//@ build-pass

use std::sync::atomic::AtomicUsize;
use std::sync::atomic::Ordering::Relaxed;

fn main() {
    AtomicUsize::new(0).load(Relaxed);
}