]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Wed, 19 Feb 2003 15:28:31 +0000 (15:28 +0000)
committerNo Author <no-author@gcc.gnu.org>
Wed, 19 Feb 2003 15:28:31 +0000 (15:28 +0000)
'gcc-3_2-branch'.

From-SVN: r63114

gcc/testsuite/g++.dg/ext/typeof4.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/ext/typeof4.C b/gcc/testsuite/g++.dg/ext/typeof4.C
new file mode 100644 (file)
index 0000000..2f42370
--- /dev/null
@@ -0,0 +1,13 @@
+// { dg-do compile }
+// { dg-options "" }
+
+// Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
+
+// PR c++/9459: typeof in return type of template function
+
+void foo (int) {}
+void foo (double) {}
+
+template <typename C>
+typeof(foo(1))
+bar () { return foo(1); }