* pt.c (tsubst_expr) [ASM_STMT]: Copy ASM_INPUT_P.
From-SVN: r53397
This commit is contained in:
parent
f0d61a79be
commit
4cb325fdb0
1 changed files with 12 additions and 0 deletions
12
gcc/testsuite/g++.dg/ext/asm2.C
Normal file
12
gcc/testsuite/g++.dg/ext/asm2.C
Normal 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();
|
||||
}
|
Loading…
Add table
Reference in a new issue