[PATCH] D145429: add test case
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 6 14:34:05 PST 2023
nickdesaulniers created this revision.
Herald added a project: All.
nickdesaulniers requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
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,7 @@
// Ensure we accept pointer and non-pointer arguments to "p" constrained
// inputs.
asm (""::"p"(t), "p"(p));
+ // 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}}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145429.502808.patch
Type: text/x-patch
Size: 546 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230306/2e1354c7/attachment.bin>
More information about the cfe-commits
mailing list