freebsd-nq/test/CodeGenCXX/PR4983-constructor-conversion.cpp
2010-01-01 10:34:51 +00:00

17 lines
153 B
C++

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