mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
26 lines
500 B
C
26 lines
500 B
C
// LINK:
|
|
|
|
// test __builtin_va_start and __builtin_va_end
|
|
// https://issues.dlang.org/show_bug.cgi?id=21974
|
|
// https://issues.dlang.org/show_bug.cgi?id=22589
|
|
|
|
typedef __builtin_va_list __gnuc_va_list;
|
|
typedef __gnuc_va_list va_list;
|
|
|
|
int test21974a(const char *format, va_list va)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int test21974(const char *format, ...)
|
|
{
|
|
va_list va;
|
|
int ret;
|
|
|
|
__builtin_va_start(va,format);
|
|
ret = test21974a(format, va);
|
|
__builtin_va_end(va);
|
|
return ret;
|
|
}
|
|
|
|
void main() {}
|