summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/patches1.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/patches1.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.law/patches1.C24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/patches1.C b/gcc/testsuite/g++.old-deja/g++.law/patches1.C
new file mode 100755
index 0000000..3ec9321
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.law/patches1.C
@@ -0,0 +1,24 @@
+// Build don't link:
+// GROUPS passed patches
+// patches file
+// From: david.binderman@pmsr.philips.co.uk
+// Date: Wed, 6 Oct 93 17:05:54 BST
+// Subject: Reno 1.2 bug fix
+// Message-ID: <9310061605.AA04160@pmsr.philips.co.uk>
+
+int type(float) { return 1; }
+int type(double) { return 2; }
+int type(long double) { return 3; }
+
+extern "C" int printf( const char *, ...);
+
+int main()
+{
+ int i = 0;
+ if (type(0.0) != 2)
+ ++i;
+ if (i > 0)
+ printf ("FAIL\n");
+ else
+ printf ("PASS\n");
+}