Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.c-torture / execute / builtins / lib / sprintf.c
blob7aa2fd7153097300e73d5aa9031a19fb377e226d
1 #include <stdio.h>
2 #include <stdarg.h>
3 extern void abort (void);
4 extern int inside_main;
6 int
7 sprintf (char *buf, const char *fmt, ...)
9 va_list ap;
10 int r;
11 #ifdef __OPTIMIZE__
12 if (inside_main)
13 abort ();
14 #endif
15 va_start (ap, fmt);
16 r = vsprintf (buf, fmt, ap);
17 va_end (ap);
18 return r;