X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fother%2Fstdarg1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fother%2Fstdarg1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=3b7718bd2296159aa54aebb44f03b50d09a63a4e;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/other/stdarg1.C b/gcc/testsuite/g++.dg/other/stdarg1.C deleted file mode 100644 index 3b7718bd..00000000 --- a/gcc/testsuite/g++.dg/other/stdarg1.C +++ /dev/null @@ -1,26 +0,0 @@ -// Test stdarg function with anonymous argument -// { dg-do run } - -#include - -extern "C" void abort (void); - -void baz (va_list list) -{ - if (va_arg (list, long) != 3) - abort (); -} - -void foo (long p1, long, long p2, ...) -{ - va_list list; - va_start (list, p2); - baz (list); - va_end (list); -} - -int main () -{ - foo (0, 1, 2, 3); - return 0; -}