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

10 lines
165 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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**