Skip to content

Commit 20b49f8

Browse files
committed
optimization-remark
1 parent 9a7db56 commit 20b49f8

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/ui/codegen/remark-flag-functionality.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1+
//! Check that `-Cremark` flag correctly emits LLVM optimization remarks.
2+
//!
3+
//! Regression test for <https://github.com/rust-lang/rust/issues/90924>.
4+
15
//@ build-pass
26
//@ ignore-pass
37
//@ revisions: all inline merge1 merge2
48
//@ compile-flags: --crate-type=lib -Cdebuginfo=1 -Copt-level=2
5-
//
9+
610
// Check that remarks can be enabled individually or with "all":
7-
//
811
//@ [all] compile-flags: -Cremark=all
912
//@ [inline] compile-flags: -Cremark=inline
10-
//
13+
1114
// Check that values of -Cremark flag are accumulated:
12-
//
1315
//@ [merge1] compile-flags: -Cremark=all -Cremark=giraffe
1416
//@ [merge2] compile-flags: -Cremark=inline -Cremark=giraffe
17+
1518
//@ dont-check-compiler-stderr
1619
//@ dont-require-annotations: NOTE
1720

1821
#[no_mangle]
1922
#[inline(never)]
20-
pub fn f() {
21-
}
23+
pub fn f() {}
2224

2325
#[no_mangle]
2426
pub fn g() {

0 commit comments

Comments
 (0)