Commit be10afdf by Geoffrey Keating Committed by Geoffrey Keating

* gcc.c-torture/execute/20001130-2.c: New testcase.

From-SVN: r37902
parent a30dbb39
2000-11-30 Geoffrey Keating <geoffk@redhat.com>
* gcc.c-torture/execute/20001130-2.c: New testcase.
2000-11-30 Richard Henderson <rth@redhat.com>
* gcc.c-torture/execute/20001130-1.c: New test.
......
static int which_alternative = 3;
static const char *i960_output_ldconst (void);
static const char *
output_25 (void)
{
switch (which_alternative)
{
case 0:
return "mov %1,%0";
case 1:
return i960_output_ldconst ();
case 2:
return "ld %1,%0";
case 3:
return "st %1,%0";
}
}
static const char *i960_output_ldconst (void)
{
return "foo";
}
int main(void)
{
const char *s = output_25 () ;
if (s[0] != 's')
abort ();
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment