diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-10-10 22:41:00 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-10-10 22:41:00 +0000 |
commit | 13e1bca90dc227e1e9c30900841f8bf976c0c83e (patch) | |
tree | 64fb8b8457c6b44341c2803d48831a2190231a73 /test/CodeGenCXX/constructor-convert.cpp | |
parent | 46eaf7789a1059a7b42b7dbd183150c72df5738f (diff) |
When performing a user-defined conversion via a constructor, be sure
to check whether the constructor is accessible. Fixes
<rdar://problem/10202900>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141588 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/constructor-convert.cpp')
-rw-r--r-- | test/CodeGenCXX/constructor-convert.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/CodeGenCXX/constructor-convert.cpp b/test/CodeGenCXX/constructor-convert.cpp index 9122dae128..7feeaa900a 100644 --- a/test/CodeGenCXX/constructor-convert.cpp +++ b/test/CodeGenCXX/constructor-convert.cpp @@ -2,6 +2,7 @@ // PR5775 class Twine { +public: Twine(const char *Str) { } }; |