]> git.pld-linux.org Git - packages/gcc.git/blob - gcc32-c++-tsubst-asm.patch
89964ddd19b347aaa70397a21e23491a8c075864
[packages/gcc.git] / gcc32-c++-tsubst-asm.patch
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 +}
This page took 0.048326 seconds and 2 git commands to generate.