xref: /llvm-project/clang/test/CodeGenCXX/merge-all-constants-references.cpp (revision be2147db054ec096199d1251bfab9065c7e0f29b)
1 // RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -fmerge-all-constants %s -o /dev/null
2 
3 struct A {
4 };
5 
6 struct B {
7   const struct A& a = {};
8 };
9 
10 void Test(const struct B&);
11 
Run()12 void Run() {
13   Test({});
14 }
15