From: Jason Merrill Date: Sun, 12 May 2002 09:25:45 +0000 (-0400) Subject: * pt.c (tsubst_expr) [ASM_STMT]: Copy ASM_INPUT_P. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4cb325fdb0255e47cf0abb1bf96f6c6bf4277771;p=gcc.git * pt.c (tsubst_expr) [ASM_STMT]: Copy ASM_INPUT_P. From-SVN: r53397 --- diff --git a/gcc/testsuite/g++.dg/ext/asm2.C b/gcc/testsuite/g++.dg/ext/asm2.C new file mode 100644 index 00000000000..6cec382c8ba --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/asm2.C @@ -0,0 +1,12 @@ +// Bug: in a template, we forgot that this was a simple asm, and decided +// that %edi was a malformed operand specifier. + +template class I { +public: + void f() { asm ("# mov %edi, %esi" ); } +}; + +int main () { + I x; + x.f(); +}