mescc: Tinycc support: Update some tests.

This commit is contained in:
Jan Nieuwenhuizen 2018-05-14 21:18:08 +02:00
parent 8c6e41d92d
commit 209f9cc599
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
4 changed files with 15 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -28,6 +28,10 @@ main ()
#else // !__MESC__
asm ("mov $0,%ebx");
asm ("mov $1,%eax");
#if !__TINYC__
asm ("int $0x80");
#else
asm ("int $128");
#endif
#endif
}

View File

@ -20,6 +20,10 @@
int g_time = 1;
#if __TINYC__
#define time time_
#endif
int*
time ()
{

View File

@ -18,6 +18,10 @@
* along with Mes. If not, see <http://www.gnu.org/licenses/>.
*/
#if __TINYC__
#define unsigned
#endif
static int sint;
static int sint2, sint3;
typedef unsigned int size;
@ -34,5 +38,6 @@ int
main ()
{
void (*foo)() = &test;
return test (0);
test (0);
return 0;
}