]>
Commit | Line | Data |
---|---|---|
2199a3f9 | 1 | 2002-05-09 Jason Merrill <jason@redhat.com> |
2 | ||
3 | * g++.dg/ext/asm2.C: New test. | |
4 | ||
5 | --- gcc/testsuite/g++.dg/ext/asm2.C.jj Wed May 15 13:51:22 2002 | |
6 | +++ gcc/testsuite/g++.dg/ext/asm2.C Sun May 12 11:25:45 2002 | |
7 | @@ -0,0 +1,12 @@ | |
8 | +// Bug: in a template, we forgot that this was a simple asm, and decided | |
9 | +// that %edi was a malformed operand specifier. | |
10 | + | |
11 | +template <class T> class I { | |
12 | +public: | |
13 | + void f() { asm ("# mov %edi, %esi" ); } | |
14 | +}; | |
15 | + | |
16 | +int main () { | |
17 | + I<int> x; | |
18 | + x.f(); | |
19 | +} |