mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 22:38:56 -04:00

It's a patch for PR28050. Seems like overloading resolution wipes out the first standard conversion sequence (before user-defined conversion) in case of deprecated string literal conversion. Differential revision: https://reviews.llvm.org/D21228 Patch by Alexander Makarov llvm-svn: 275970
12 lines
193 B
C++
12 lines
193 B
C++
// RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -std=c++11 %s -fsyntax-only
|
|
//
|
|
// expected-no-diagnostics
|
|
|
|
class A {
|
|
public:
|
|
A(char *s) {}
|
|
A(A &&) = delete;
|
|
};
|
|
|
|
int main() { A a("OK"); }
|