* gcc.c-torture/execute/20000314-3.c: New test.
From-SVN: r32542
This commit is contained in:
parent
e3600af469
commit
7924327ea4
@ -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.
|
||||
|
42
gcc/testsuite/gcc.c-torture/execute/20000314-3.c
Normal file
42
gcc/testsuite/gcc.c-torture/execute/20000314-3.c
Normal 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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user