minix/external/bsd/llvm/dist/clang/test/CodeGenCXX/PR4983-constructor-conversion.cpp

17 lines
153 B
C++
Raw Normal View History

// 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");
}