summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/converting-constructor.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-11-03 19:09:14 +0000
committerDouglas Gregor <dgregor@apple.com>2008-11-03 19:09:14 +0000
commit2fe9883a961dfa872b0a20e8b56e7bf65fc98b6f (patch)
tree531be31c1fde3c0c9659e1c677968dd8da52dced /clang/test/SemaCXX/converting-constructor.cpp
parent4d0549e3be84ae5645c1d6f4745c276e5bb69289 (diff)
downloadbcm5719-llvm-2fe9883a961dfa872b0a20e8b56e7bf65fc98b6f.tar.gz
bcm5719-llvm-2fe9883a961dfa872b0a20e8b56e7bf65fc98b6f.zip
Standard conversion sequences now have a CopyConstructor field, to
cope with the case where a user-defined conversion is actually a copy construction, and therefore can be compared against other standard conversion sequences. While I called this a hack before, now I'm convinced that it's the right way to go. Compare overloads based on derived-to-base conversions that invoke copy constructors. Suppress user-defined conversions when attempting to call a user-defined conversion. llvm-svn: 58629
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 4bcd5aa01ec..b99a134328e 100644
--- a/clang/test/SemaCXX/converting-constructor.cpp
+++ b/clang/test/SemaCXX/converting-constructor.cpp
@@ -1,4 +1,4 @@
-// RUN: clang -fsyntax-only %s
+// RUN: clang -fsyntax-only -verify %s
class Z { };
class Y {
@@ -18,6 +18,6 @@ void g(short s, Y y, Z z) {
f(s);
f(1.0f);
f(y);
- f(z); // expected-error{{incompatible}}
+ f(z); // expected-error{{incompatible type passing 'class Z', expected 'class X'}}
}
OpenPOWER on IntegriCloud