File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change
1
+ //! Check that `-Cremark` flag correctly emits LLVM optimization remarks.
2
+ //!
3
+ //! Regression test for <https://github.com/rust-lang/rust/issues/90924>.
4
+
1
5
//@ build-pass
2
6
//@ ignore-pass
3
7
//@ revisions: all inline merge1 merge2
4
8
//@ compile-flags: --crate-type=lib -Cdebuginfo=1 -Copt-level=2
5
- //
9
+
6
10
// Check that remarks can be enabled individually or with "all":
7
- //
8
11
//@ [all] compile-flags: -Cremark=all
9
12
//@ [inline] compile-flags: -Cremark=inline
10
- //
13
+
11
14
// Check that values of -Cremark flag are accumulated:
12
- //
13
15
//@ [merge1] compile-flags: -Cremark=all -Cremark=giraffe
14
16
//@ [merge2] compile-flags: -Cremark=inline -Cremark=giraffe
17
+
15
18
//@ dont-check-compiler-stderr
16
19
//@ dont-require-annotations: NOTE
17
20
18
21
#[ no_mangle]
19
22
#[ inline( never) ]
20
- pub fn f ( ) {
21
- }
23
+ pub fn f ( ) { }
22
24
23
25
#[ no_mangle]
24
26
pub fn g ( ) {
You can’t perform that action at this time.
0 commit comments