summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/shr2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/shr2.c')
-rw-r--r--gdb/testsuite/gdb.base/shr2.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/shr2.c b/gdb/testsuite/gdb.base/shr2.c
index 94d5df962a5..de34986d76d 100644
--- a/gdb/testsuite/gdb.base/shr2.c
+++ b/gdb/testsuite/gdb.base/shr2.c
@@ -1,11 +1,17 @@
-int shr2(x)
+#ifdef PROTOTYPES
+int shr2(int x)
+#else
+int shr2(x) int x;
+#endif
{
return 2*x;
}
-int shr2_local(x)
+#ifdef PROTOTYPES
+int shr2_local(int x)
+#else
+int shr2_local(x) int x;
+#endif
{
return 2*x;
}
-
-