[PATCH] D145429: add test case
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 6 15:00:31 PST 2023
nickdesaulniers updated this revision to Diff 502821.
nickdesaulniers added a comment.
- rebase, additional unit test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145429/new/
https://reviews.llvm.org/D145429
Files:
clang/test/Sema/inline-asm-validate.c
Index: clang/test/Sema/inline-asm-validate.c
===================================================================
--- clang/test/Sema/inline-asm-validate.c
+++ clang/test/Sema/inline-asm-validate.c
@@ -7,4 +7,8 @@
// Ensure we accept pointer and non-pointer arguments to "p" constrained
// inputs.
asm (""::"p"(t), "p"(p), "p"(&t));
+ // TODO: Ensure we accept p output constraints.
+ asm ("":"=p"(t)); // expected-error{{invalid output constraint '=p' in asm}}
+ asm ("":"=p"(p)); // expected-error{{invalid output constraint '=p' in asm}}
+ asm ("":"=p"(&t)); // expected-error{{invalid output constraint '=p' in asm}}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145429.502821.patch
Type: text/x-patch
Size: 636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230306/e6f2cb09/attachment-0001.bin>
More information about the cfe-commits
mailing list