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

From-SVN: r38433
This commit is contained in:
J"orn Rennecke 2000-12-21 23:05:55 +00:00 committed by Joern Rennecke
parent e3123ab3ba
commit ee4fca5842
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -1,3 +1,4 @@
#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;
}