1 | // RUN: %clang_cc1 -emit-llvm-only %s |
---|---|
2 | |
3 | struct A { |
4 | A(const char *s){} |
5 | }; |
6 | |
7 | struct B { |
8 | A a; |
9 | |
10 | B() : a("test") { } |
11 | }; |
12 | |
13 | void f() { |
14 | A a("test"); |
15 | } |
16 | |
17 |
1 | // RUN: %clang_cc1 -emit-llvm-only %s |
---|---|
2 | |
3 | struct A { |
4 | A(const char *s){} |
5 | }; |
6 | |
7 | struct B { |
8 | A a; |
9 | |
10 | B() : a("test") { } |
11 | }; |
12 | |
13 | void f() { |
14 | A a("test"); |
15 | } |
16 | |
17 |