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-Tag: releases/gcc-3.3.0~5112 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4cb325fdb0255e47cf0abb1bf96f6c6bf4277771;p=thirdparty%2Fgcc.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 000000000000..6cec382c8ba7 --- /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(); +}