llvm-for-llvmta/tools/clang/test/CodeGenCXX/constructor-init-reference.cpp

10 lines
165 B
C++

// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s
int x;
struct A {
int& y;
A() : y(x) {}
};
A z;
// CHECK: store i32* @x, i32**