* gcc.c-torture/execute/20000314-3.c: New test.

From-SVN: r32542
This commit is contained in:
Jeffrey A Law 2000-03-14 20:30:10 +00:00 committed by Jeff Law
parent e3600af469
commit 7924327ea4
2 changed files with 43 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Tue Mar 14 08:58:37 2000 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/20000314-3.c: New test.
* gcc.c-torture/execute/20000314-2.c: New test.
* gcc.c-torture/execute/20000314-1.c: New test.
* gcc.c-torture/compile/20000314-2.c: New test.

View File

@ -0,0 +1,42 @@
extern void abort (void);
static char arg0[] = "arg0";
static char arg1[] = "arg1";
static void attr_rtx (char *, char *);
static char *attr_string (char *);
static void attr_eq (char *, char *);
static void
attr_rtx (char *varg0, char *varg1)
{
if (varg0 != arg0)
abort ();
if (varg1 != arg1)
abort ();
return;
}
static void
attr_eq (name, value)
char *name, *value;
{
return attr_rtx (attr_string (name),
attr_string (value));
}
static char *
attr_string (str)
char *str;
{
return str;
}
int main()
{
attr_eq (arg0, arg1);
exit (0);
}