1 // RUN: %clang_cc1 -triple x86_64 -emit-llvm -o %t %s
2
3 // Make sure there is no assertion due to UsedDeclVisitor.
4
5 struct A {
6 int a;
7 };
8
9 static A a;
10
11 struct B {
BB12 B(int b = a.a) {}
13 };
14
15
foo()16 void foo() {
17 B();
18 }
19