[cfe-commits] r75151 - /cfe/trunk/test/CXX/over/over.over/p2.cpp
Douglas Gregor
dgregor at apple.com
Thu Jul 9 10:44:05 PDT 2009
Author: dgregor
Date: Thu Jul 9 12:44:05 2009
New Revision: 75151
URL: http://llvm.org/viewvc/llvm-project?rev=75151&view=rev
Log:
Another little test for C++ [over.over]
Added:
cfe/trunk/test/CXX/over/over.over/p2.cpp (with props)
Added: cfe/trunk/test/CXX/over/over.over/p2.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/over/over.over/p2.cpp?rev=75151&view=auto
==============================================================================
--- cfe/trunk/test/CXX/over/over.over/p2.cpp (added)
+++ cfe/trunk/test/CXX/over/over.over/p2.cpp Thu Jul 9 12:44:05 2009
@@ -0,0 +1,10 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+template<typename T> T f0(T, T);
+
+void test_f0() {
+ int (*f0a)(int, int) = f0;
+ int (*f0b)(int, int) = &f0;
+ int (*f0c)(int, float) = f0; // expected-error{{incompatible type}}
+ // FIXME: poor error message above!
+}
\ No newline at end of file
Propchange: cfe/trunk/test/CXX/over/over.over/p2.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cfe/trunk/test/CXX/over/over.over/p2.cpp
------------------------------------------------------------------------------
svn:keywords = Id
Propchange: cfe/trunk/test/CXX/over/over.over/p2.cpp
------------------------------------------------------------------------------
svn:mime-type = text/plain
More information about the cfe-commits
mailing list