Skip to content

Commit 24c23f5

Browse files
committed
Test hexagon-enum only when llvm target is present
See rust-lang#82379 (comment)
1 parent 15598a8 commit 24c23f5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/test/ui/layout/hexagon-enum.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// compile-flags: --target hexagon-unknown-linux-musl
2+
// needs-llvm-components: hexagon
23
//
34
// Verify that the hexagon targets implement the repr(C) for enums correctly.
45
//

src/test/ui/layout/hexagon-enum.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ error: layout_of(A) = Layout {
8181
raw: 1,
8282
},
8383
}
84-
--> $DIR/hexagon-enum.rs:15:1
84+
--> $DIR/hexagon-enum.rs:16:1
8585
|
8686
LL | enum A { Apple }
8787
| ^^^^^^^^^^^^^^^^
@@ -169,7 +169,7 @@ error: layout_of(B) = Layout {
169169
raw: 1,
170170
},
171171
}
172-
--> $DIR/hexagon-enum.rs:19:1
172+
--> $DIR/hexagon-enum.rs:20:1
173173
|
174174
LL | enum B { Banana = 255, }
175175
| ^^^^^^^^^^^^^^^^^^^^^^^^
@@ -257,7 +257,7 @@ error: layout_of(C) = Layout {
257257
raw: 2,
258258
},
259259
}
260-
--> $DIR/hexagon-enum.rs:23:1
260+
--> $DIR/hexagon-enum.rs:24:1
261261
|
262262
LL | enum C { Chaenomeles = 256, }
263263
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -345,7 +345,7 @@ error: layout_of(P) = Layout {
345345
raw: 4,
346346
},
347347
}
348-
--> $DIR/hexagon-enum.rs:27:1
348+
--> $DIR/hexagon-enum.rs:28:1
349349
|
350350
LL | enum P { Peach = 0x1000_0000isize, }
351351
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -433,7 +433,7 @@ error: layout_of(T) = Layout {
433433
raw: 4,
434434
},
435435
}
436-
--> $DIR/hexagon-enum.rs:33:1
436+
--> $DIR/hexagon-enum.rs:34:1
437437
|
438438
LL | enum T { Tangerine = TANGERINE as isize }
439439
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)