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> ...@@ -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. Use long types if __INT_MAX__ is 32767.
(main): Use cast to (sint32 *) when poking 88 into a_page. (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> 2000-12-21 Bernd Schmidt <bernds@redhat.com>
* gcc.c-torture/compile/20001221-1.c: New test. * gcc.c-torture/compile/20001221-1.c: New test.
......
#ifndef NO_TRAMPOLINES
int f0(int (*fn)(int *), int *p) int f0(int (*fn)(int *), int *p)
{ {
return (*fn) (p); return (*fn) (p);
...@@ -15,10 +16,13 @@ int f1(void) ...@@ -15,10 +16,13 @@ int f1(void)
return f0(f2, &i); return f0(f2, &i);
} }
#endif
int main() int main()
{ {
#ifndef NO_TRAMPOLINES
if (f1() != 2) if (f1() != 2)
abort (); abort ();
#endif
return 0; 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