Author: dgregor
Date: Wed Nov 19 16:59:19 2008
New Revision: 59675

URL: http://llvm.org/viewvc/llvm-project?rev=59675&view=rev
Log:
Beef up the test for function call operators slightly

Modified:
    cfe/trunk/test/SemaCXX/overloaded-operator.cpp

Modified: cfe/trunk/test/SemaCXX/overloaded-operator.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/overloaded-operator.cpp?rev=59675&r1=59674&r2=59675&view=diff

==============================================================================
--- cfe/trunk/test/SemaCXX/overloaded-operator.cpp (original)
+++ cfe/trunk/test/SemaCXX/overloaded-operator.cpp Wed Nov 19 16:59:19 2008
@@ -141,10 +141,12 @@
 struct ConvertToFunc {
   operator Func1*(); // expected-note{{conversion candidate of type 'int 
&(*)(float, double)'}}
   operator Func2&(); // expected-note{{conversion candidate of type 'float 
&(&)(int, double)'}}
+  void operator()();
 };
 
 void test_funcptr_call(ConvertToFunc ctf) {
   int &i1 = ctf(1.0f, 2.0);
   float &f2 = ctf((short int)1, 1.0f);
   ctf((long int)17, 2.0); // expected-error{{error: call to object of type 
'struct ConvertToFunc' is ambiguous; candidates are:}}
+  ctf();
 }


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to