xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/constructor-init-reference.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s
2f4a2713aSLionel Sambuc 
3f4a2713aSLionel Sambuc int x;
4f4a2713aSLionel Sambuc struct A {
5f4a2713aSLionel Sambuc   int& y;
AA6f4a2713aSLionel Sambuc   A() : y(x) {}
7f4a2713aSLionel Sambuc };
8f4a2713aSLionel Sambuc A z;
9*0a6a1f1dSLionel Sambuc // CHECK: store i32* @x, i32**
10