aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/varargs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/varargs.c')
-rw-r--r--gdb/testsuite/gdb.base/varargs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/varargs.c b/gdb/testsuite/gdb.base/varargs.c
index 729d7df..6664253 100644
--- a/gdb/testsuite/gdb.base/varargs.c
+++ b/gdb/testsuite/gdb.base/varargs.c
@@ -18,11 +18,12 @@ short s;
unsigned short us;
int a,b,c,d;
int max_val;
+long long ll;
float fa,fb,fc,fd;
double da,db,dc,dd;
double dmax_val;
-main() {
+int main() {
c = -1;
uc = 1;
s = -2;
@@ -43,6 +44,8 @@ main() {
dd = 2.0;
dmax_val = find_max_double(3, 1.0, 4.0, 2.0);
dmax_val = find_max_double(a, db, dc, dd);
+
+ return 0;
}
/* Integer varargs, 1 declared arg */