diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/compat/scalar-by-value-2_main.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/scalar-by-value-2_main.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/compat/scalar-by-value-2_main.c b/gcc/testsuite/gcc.dg/compat/scalar-by-value-2_main.c new file mode 100644 index 000000000..8426b7894 --- /dev/null +++ b/gcc/testsuite/gcc.dg/compat/scalar-by-value-2_main.c @@ -0,0 +1,15 @@ +/* Test passing scalars by value. This test includes scalar types that + are not supported by va_arg; since they require casts to pass to a + function with a variable argument list, testing them with variable + arguments is not interesting. */ + +extern void scalar_by_value_2_x (void); +extern void exit (int); +int fails; + +int +main () +{ + scalar_by_value_2_x (); + exit (0); +} |