[pkg-d-commits] [ldc] 85/211: Add a test for #802.

Matthias Klumpp mak at moszumanska.debian.org
Sun Apr 23 22:36:12 UTC 2017


This is an automated email from the git hooks/post-receive script.

mak pushed a commit to annotated tag v1.1.0
in repository ldc.

commit 549422f3000958c44462a7475a384436bc3e5875
Author: LemonBoy <thatlemon at gmail.com>
Date:   Thu Oct 13 15:50:12 2016 +0200

    Add a test for #802.
---
 tests/codegen/asm_constraints.d | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/codegen/asm_constraints.d b/tests/codegen/asm_constraints.d
new file mode 100644
index 0000000..39ead60
--- /dev/null
+++ b/tests/codegen/asm_constraints.d
@@ -0,0 +1,7 @@
+// RUN: not %ldc -c -w %s 2>&1 | FileCheck %s
+
+void main () {
+    import ldc.llvmasm : __asm;
+    // CHECK: Error: __asm constraint argument is invalid
+    __asm("", "][");
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git



More information about the pkg-d-commits mailing list