llvm-project/clang/test/CodeGenCXX/PR4983-constructor-conversi...

17 lines
151 B
C++

// RUN: clang-cc -emit-llvm-only %s
struct A {
A(const char *s){}
};
struct B {
A a;
B() : a("test") { }
};
void f() {
A a("test");
}