OSDN Git Service

* g++.old-deja/g++.other/expr1.C: New test.
authoroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 5 Dec 1998 22:46:57 +0000 (22:46 +0000)
committeroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 5 Dec 1998 22:46:57 +0000 (22:46 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24114 138bc75d-0d04-0410-961f-82ee72b054a4

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

index e4aea18..1646152 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
+}