Commit 03985b39 authored by Simon Marlow's avatar Simon Marlow

run stdcall tests on non-Windows platforms too (#3336)

parent 0eff6847
#include <stdio.h>
void _stdcall test(int arg)
void __attribute__((stdcall)) test(int arg)
{
printf("The argument passed was %i\n", arg );
}
#include <stdio.h>
void _stdcall test(int arg)
void __attribute__((stdcall)) test(int arg)
{
printf("The argument passed was %i\n", arg );
}
#include <stdio.h>
void _stdcall test(int arg)
void __attribute__((stdcall)) test(int arg)
{
printf("The argument passed was %i\n", arg );
}
#include <stdio.h>
void _stdcall test(int arg)
void __attribute__((stdcall)) test(int arg)
{
printf("The argument passed was %i\n", arg );
}
......@@ -121,18 +121,18 @@ test('ffi019', normal, compile_and_run, [''])
# This one originally failed only GHCi, but doesn't hurt to test all ways.
test('1679', normal, compile_and_run, [''])
test('1288', [ skip_if_not_windows, omit_ways(['ghci']),
test('1288', [ omit_ways(['ghci']),
extra_clean(['1288_c.o']) ],
compile_and_run, ['1288_c.c'])
test('1288_ghci', [ skip_if_not_windows, only_ways(['ghci']),
test('1288_ghci', [ only_ways(['ghci']),
cmd_prefix('$MAKE --no-print-directory 1288_ghci_setup && '),
extra_clean(['1288_ghci_c.o']) ],
compile_and_run, ['1288_ghci_c.o'])
test('2276', [ skip_if_not_windows, omit_ways(['ghci']),
test('2276', [ omit_ways(['ghci']),
extra_clean(['2276_c.o']) ],
compile_and_run, ['2276_c.c'])
test('2276_ghci', [ skip_if_not_windows, only_ways(['ghci']),
test('2276_ghci', [ only_ways(['ghci']),
cmd_prefix('$MAKE --no-print-directory 2276_ghci_setup && '),
extra_clean(['2276_ghci_c.o']) ],
compile_and_run, ['-fobject-code 2276_ghci_c.o'])
......
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