☰
Debian Codegraph
@
1:22.1.8-2
1:22.1.8-1
1:22.1.7-1
/
/
clang
/
test
/
CodeGenCXX
/
used-decl-visitor.cpp
☽
☼
clang/test/CodeGenCXX/used-decl-visitor.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
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 {
12
B(int b = a.a) {}
13
};
14
15
16
void foo() {
17
B();
18
}