summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/converting-constructor.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-02-04 00:32:51 +0000
committerDouglas Gregor <dgregor@apple.com>2009-02-04 00:32:51 +0000
commite254f90d94e3294470b055e3851d636333e3467c (patch)
tree40abda5f13c55af26120e1a54173929d33723423 /clang/test/SemaCXX/converting-constructor.cpp
parent3d9296e6f552cceb73dae277f56bac3127a44759 (diff)
downloadbcm5719-llvm-e254f90d94e3294470b055e3851d636333e3467c.tar.gz
bcm5719-llvm-e254f90d94e3294470b055e3851d636333e3467c.zip
Initial implementation of argument dependent lookup (a.k.a. ADL,
a.k.a. Koenig lookup) in C++. Most of the pieces are in place, but for two: - In an unqualified call g(x), even if the name does not refer to anything in the current scope, we can still find functions named "g" based on ADL. We don't yet have this ability. - ADL will need updating for friend functions and templates. llvm-svn: 63692
Diffstat (limited to 'clang/test/SemaCXX/converting-constructor.cpp')
-rw-r--r--clang/test/SemaCXX/converting-constructor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/converting-constructor.cpp b/clang/test/SemaCXX/converting-constructor.cpp
index 0ab8d931377..edded175822 100644
--- a/clang/test/SemaCXX/converting-constructor.cpp
+++ b/clang/test/SemaCXX/converting-constructor.cpp
@@ -12,13 +12,13 @@ public:
X(const Y&);
};
-void f(X);
+void f(X); // expected-note{{candidate function}}
void g(short s, Y y, Z z) {
f(s);
f(1.0f);
f(y);
- f(z); // expected-error{{incompatible type passing 'class Z', expected 'class X'}}
+ f(z); // expected-error{{no matching function}}
}
OpenPOWER on IntegriCloud