summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/constructor-init-reference.cpp
blob: 5e751597651885b3e2b2c77329c1f8996d4afd94 (about) (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -emit-llvm -o - %s | grep "store i32\* @x, i32\*\*"

int x;
struct A {
  int& y;
  A() : y(x) {}
};
A z;