Commit 5ba280da by Bernd Schmidt Committed by Bernd Schmidt

Fix an older test

From-SVN: r30975
parent 3d62d651
1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
* gcc.dg/991214-1.c: Use "__asm__", not "asm".
Actually make the test fail by using "-O2" for compilation.
1999-12-15 Nathan Sidwell <nathan@acm.org>
* g++.old-deja/g++.warn/cast-align1.C: New test.
......
/* { dg-do compile { target i?86-*-* } } */
/* { dg-options "-O2" } */
/* Test against a problem with the combiner substituting explicit hard reg
references when it shouldn't. */
int foo (int, int) __attribute__ ((regparm (3)));
int foo (int x, int y)
{
asm volatile("" : : "d" (x), "r" (y));
__asm__ __volatile__("" : : "d" (x), "r" (y));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment