mirror of
https://github.com/anope/anope.git
synced 2026-07-01 00:06:39 +02:00
1cd73b4dad
(Note: Although each Makefile was changed, they will be removed later as CMake reconstructs them.) Also fixed generation of language files and version.h to not rely on the current directory they are in. Edited Config to send parameters to cmake, but it is no longer a requirement. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1835 5417fbe8-f217-4b02-8779-1006273d7864
20 lines
252 B
C
20 lines
252 B
C
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
|
|
void foo(int i, ...)
|
|
{
|
|
va_list ap1, ap2;
|
|
va_start(ap1, i);
|
|
ap2 = ap1;
|
|
if (va_arg(ap2, int) != 123 || va_arg(ap1, int) != 123) exit(1);
|
|
va_end(ap1);
|
|
va_end(ap2);
|
|
}
|
|
|
|
int main()
|
|
{
|
|
foo(0, 123);
|
|
return 0;
|
|
}
|
|
|