]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* g++.old-deja/g++.other/expr1.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sat, 5 Dec 1998 22:46:57 +0000 (22:46 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Sat, 5 Dec 1998 22:46:57 +0000 (22:46 +0000)
From-SVN: r24114

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

index e4aea189bbe648d85d90031fb0dd741a8baad076..16461527d4556fb7a0d1477d6e25a6e38ffee46b 100644 (file)
@@ -1,5 +1,7 @@
 1998-12-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * g++.old-deja/g++.other/expr1.C: New test.
+
        * g++.old-deja/g++.eh/tmpl3.C: New test.
 
        * g++.old-deja/g++.eh/tmpl2.C: New test.
diff --git a/gcc/testsuite/g++.old-deja/g++.other/expr1.C b/gcc/testsuite/g++.old-deja/g++.other/expr1.C
new file mode 100644 (file)
index 0000000..0f5fdcf
--- /dev/null
@@ -0,0 +1,13 @@
+// Build don't link:
+
+// crash test - XFAIL *-*-*
+
+// Simplified from bug report by Trevor Taylor <ttaylor@powerup.com.au>
+
+struct T {
+  int operator()(int) { }
+};
+
+int main() {
+  T()(); // ERROR - no such operator
+}