brintos

brintos / llvm-project-archived public Read only

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