about summary refs log tree commit diff
path: root/src/test/ui/consts/inline_asm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/inline_asm.rs')
-rw-r--r--src/test/ui/consts/inline_asm.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/consts/inline_asm.rs b/src/test/ui/consts/inline_asm.rs
new file mode 100644
index 00000000000..c2ab97e54f0
--- /dev/null
+++ b/src/test/ui/consts/inline_asm.rs
@@ -0,0 +1,6 @@
+#![feature(llvm_asm)]
+
+const _: () = unsafe { llvm_asm!("nop") };
+//~^ ERROR contains unimplemented expression type
+
+fn main() {}