mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 11:46:07 +00:00
17 lines
151 B
C++
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");
|
|
}
|
|
|