summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/arg5.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/arg5.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.law/arg5.C16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/arg5.C b/gcc/testsuite/g++.old-deja/g++.law/arg5.C
new file mode 100755
index 0000000..276068a
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.law/arg5.C
@@ -0,0 +1,16 @@
+// Build don't link:
+// GROUPS passed arg-matching
+extern double pow(double,int*);
+
+extern "C" {
+ extern int printf(char*,...);
+ extern double pow(double, double);
+}
+
+int main()
+{
+ if (pow (2.0, 3.0) != 8.0)
+ printf ("FAIL\n");
+ else
+ printf ("PASS\n");
+}