[Clang] replace 'bitfield' with 'bit-field' for consistency (#117881)
[llvm-project.git] / clang / test / CodeGenCXX / used-decl-visitor.cpp
blob2b923ab562dbda1bdeb6bd730cfef1019291f1b0
1 // RUN: %clang_cc1 -triple x86_64 -emit-llvm -o %t %s
3 // Make sure there is no assertion due to UsedDeclVisitor.
5 struct A {
6 int a;
7 };
9 static A a;
11 struct B {
12 B(int b = a.a) {}
16 void foo() {
17 B();