summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/PR4983-constructor-conversion.cpp
blob: 31eae2e791f69110f8b08087579bead013bd3b36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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");
}