Fix issues with git converting CRLF to CR
UI tests now run on asmjs-unknown-emscripten, ignore tests with inline assembly which is not supported on emscripten targets
This commit is contained in:
parent
42a317a1cd
commit
f1c8673ae7
16 changed files with 63 additions and 49 deletions
1
src/test/ui/.gitattributes
vendored
1
src/test/ui/.gitattributes
vendored
|
@ -1 +1,2 @@
|
||||||
|
lexer-crlf-line-endings-string-literal-doc-comment.rs -text
|
||||||
trailing-carriage-return-in-string.rs -text
|
trailing-carriage-return-in-string.rs -text
|
|
@ -1,3 +1,5 @@
|
||||||
|
// ignore-emscripten
|
||||||
|
|
||||||
#![feature(asm)]
|
#![feature(asm)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0661]: output operand constraint lacks '=' or '+'
|
error[E0661]: output operand constraint lacks '=' or '+'
|
||||||
--> $DIR/E0661.rs:5:18
|
--> $DIR/E0661.rs:7:18
|
||||||
|
|
|
|
||||||
LL | asm!("nop" : "r"(a));
|
LL | asm!("nop" : "r"(a));
|
||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// ignore-emscripten
|
||||||
|
|
||||||
#![feature(asm)]
|
#![feature(asm)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0662]: input operand constraint contains '='
|
error[E0662]: input operand constraint contains '='
|
||||||
--> $DIR/E0662.rs:6:12
|
--> $DIR/E0662.rs:8:12
|
||||||
|
|
|
|
||||||
LL | : "=test"("a")
|
LL | : "=test"("a")
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// ignore-emscripten
|
||||||
|
|
||||||
#![feature(asm)]
|
#![feature(asm)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0663]: input operand constraint contains '+'
|
error[E0663]: input operand constraint contains '+'
|
||||||
--> $DIR/E0663.rs:6:12
|
--> $DIR/E0663.rs:8:12
|
||||||
|
|
|
|
||||||
LL | : "+test"("a")
|
LL | : "+test"("a")
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// ignore-emscripten
|
||||||
|
|
||||||
#![feature(asm)]
|
#![feature(asm)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0664]: clobber should not be surrounded by braces
|
error[E0664]: clobber should not be surrounded by braces
|
||||||
--> $DIR/E0664.rs:7:12
|
--> $DIR/E0664.rs:9:12
|
||||||
|
|
|
|
||||||
LL | : "{eax}"
|
LL | : "{eax}"
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// ignore-emscripten
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
unsafe {
|
unsafe {
|
||||||
asm!(""); //~ ERROR inline assembly is not stable enough
|
asm!(""); //~ ERROR inline assembly is not stable enough
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0658]: use of unstable library feature 'asm': inline assembly is not stable enough for use and is subject to change
|
error[E0658]: use of unstable library feature 'asm': inline assembly is not stable enough for use and is subject to change
|
||||||
--> $DIR/feature-gate-asm.rs:3:9
|
--> $DIR/feature-gate-asm.rs:5:9
|
||||||
|
|
|
|
||||||
LL | asm!("");
|
LL | asm!("");
|
||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// gate-test-asm
|
// gate-test-asm
|
||||||
|
// ignore-emscripten
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0658]: use of unstable library feature 'asm': inline assembly is not stable enough for use and is subject to change
|
error[E0658]: use of unstable library feature 'asm': inline assembly is not stable enough for use and is subject to change
|
||||||
--> $DIR/feature-gate-asm2.rs:5:26
|
--> $DIR/feature-gate-asm2.rs:6:26
|
||||||
|
|
|
|
||||||
LL | println!("{:?}", asm!(""));
|
LL | println!("{:?}", asm!(""));
|
||||||
| ^^^
|
| ^^^
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
// Regression test for Issue #53787: Fix ICE when creating a label in inline assembler with macros.
|
// Regression test for Issue #53787: Fix ICE when creating a label in inline assembler with macros.
|
||||||
|
|
||||||
|
// ignore-emscripten
|
||||||
|
|
||||||
#![feature(asm)]
|
#![feature(asm)]
|
||||||
|
|
||||||
macro_rules! fake_jump {
|
macro_rules! fake_jump {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
error[E0669]: invalid value for constraint in inline assembly
|
error[E0669]: invalid value for constraint in inline assembly
|
||||||
--> $DIR/issue-53787-inline-assembler-macro.rs:21:16
|
--> $DIR/issue-53787-inline-assembler-macro.rs:23:16
|
||||||
|
|
|
|
||||||
LL | fake_jump!("FirstFunc");
|
LL | fake_jump!("FirstFunc");
|
||||||
| ^^^^^^^^^^^
|
| ^^^^^^^^^^^
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue