aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/merge-all-constants-references.cpp
blob: 76c6f292ef4219926664edc35ad6bb58db62296d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -fmerge-all-constants %s -o /dev/null

struct A {
};

struct B {
  const struct A& a = {};
};

void Test(const struct B&);

void Run() {
  Test({});
}