Commit ee4fca58 by J"orn Rennecke Committed by Joern Rennecke

* gcc.c-torture/execute/20000822-1.c: Check for NO_TRAMPOLINES.

From-SVN: r38433
parent e3123ab3
......@@ -4,6 +4,8 @@ Thu Dec 21 22:43:03 2000 J"orn Rennecke <amylaar@redhat.com>
Use long types if __INT_MAX__ is 32767.
(main): Use cast to (sint32 *) when poking 88 into a_page.
* gcc.c-torture/execute/20000822-1.c: Check for NO_TRAMPOLINES.
2000-12-21 Bernd Schmidt <bernds@redhat.com>
* gcc.c-torture/compile/20001221-1.c: New test.
......
#ifndef NO_TRAMPOLINES
int f0(int (*fn)(int *), int *p)
{
return (*fn) (p);
......@@ -15,10 +16,13 @@ int f1(void)
return f0(f2, &i);
}
#endif
int main()
{
#ifndef NO_TRAMPOLINES
if (f1() != 2)
abort ();
#endif
return 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