* pt.c (tsubst_expr) [ASM_STMT]: Copy ASM_INPUT_P.

From-SVN: r53397
This commit is contained in:
Jason Merrill 2002-05-12 05:25:45 -04:00
parent f0d61a79be
commit 4cb325fdb0
1 changed files with 12 additions and 0 deletions

View File

@ -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 T> class I {
public:
void f() { asm ("# mov %edi, %esi" ); }
};
int main () {
I<int> x;
x.f();
}