This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Committed: Fix test-case gcc.dg/pr18164.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]