Committed: Fix test-case gcc.dg/pr18164.c
Hans-Peter Nilsson
hp@bitrange.com
Mon Nov 29 17:14:00 GMT 2004
Committed as obvious. It's an implied requirement that you test
your test-cases *within the test-suite framework*. The missing
dg-options "" caused the default option "-ansi" and GCC horked
on the asm. The "{dg-error" missing space typo caused dejagnu
to not see the dg-error. It's really not hard to test separate
test-cases. In this case (and assuming native build):
make check-gcc 'RUNTESTFLAGS=dg.exp=pr18164.c'
* gcc.dg/pr18164.c: Add dg-options "". Correct typo in dg-error.
Index: pr18164.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/pr18164.c,v
retrieving revision 1.1
diff -p -c -r1.1 pr18164.c
*** pr18164.c 29 Nov 2004 02:21:28 -0000 1.1
--- pr18164.c 29 Nov 2004 13:22:01 -0000
***************
*** 1,7 ****
/* { dg-do compile } */
void
f (void)
{
int x;
! asm ("" : "" (x)); /* {dg-error "output operand constraint lacks" } */
}
--- 1,8 ----
/* { dg-do compile } */
+ /* { dg-options "" } */
void
f (void)
{
int x;
! asm ("" : "" (x)); /* { dg-error "output operand constraint lacks" } */
}
brgds, H-P
More information about the Gcc-patches
mailing list