llvm-for-llvmta/tools/clang/test/CodeGenCXX/PR4983-constructor-conversi...

17 lines
153 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -emit-llvm-only %s
struct A {
A(const char *s){}
};
struct B {
A a;
B() : a("test") { }
};
void f() {
A a("test");
}