]> gcc.gnu.org Git - gcc.git/commitdiff
* g++.old-deja/g++.pt/overload8.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Thu, 3 Dec 1998 13:32:56 +0000 (13:32 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Thu, 3 Dec 1998 13:32:56 +0000 (13:32 +0000)
From-SVN: r24072

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.pt/overload8.C [new file with mode: 0644]

index be9f5770e58849435fd153575dbce48661b2d714..79357f0173b8528f1a7c04406ab7519c24e0e4d2 100644 (file)
@@ -1,5 +1,7 @@
 1998-12-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * g++.old-deja/g++.pt/overload8.C: New test.
+
        * g++.old-deja/g++.pt/overload7.C: New test.
 
        * g++.old-deja/g++.pt/spec20.C: ERROR marks were bogus
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/overload8.C b/gcc/testsuite/g++.old-deja/g++.pt/overload8.C
new file mode 100644 (file)
index 0000000..9f38a5c
--- /dev/null
@@ -0,0 +1,12 @@
+// Build don't link:
+
+// Simplified from bug report by Tim Rowley <tor@cs.brown.edu>
+
+struct baz;
+
+void operator*(baz&, double);
+
+template <class T> inline T operator*(double s, const T &p)
+  ; // gets bogus error - must have argument of class type - XFAIL *-*-*
+
+void m(baz& a) { a * .5; }
This page took 0.079559 seconds and 5 git commands to generate.