* gcc.c-torture/execute/20000112-1.c: New test.

From-SVN: r31378
This commit is contained in:
Jeffrey A Law 2000-01-13 03:31:41 +00:00 committed by Jeff Law
parent e886c40fa3
commit 7a2a27a50a
2 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Wed Jan 12 20:26:58 2000 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/20000112-1.c: New test.
2000-01-11 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* gcc.dg/20000111-1.c: New test.

View File

@ -0,0 +1,19 @@
static int
special_format (fmt)
const char *fmt;
{
return (strchr (fmt, '*') != 0
|| strchr (fmt, 'V') != 0
|| strchr (fmt, 'S') != 0
|| strchr (fmt, 'n') != 0);
}
main()
{
if (special_format ("ee"))
abort ();
if (!special_format ("*e"))
abort ();
exit (0);
}