summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/reference-field.cpp
blob: aa34fa3bd2c932d56e13dfcadc2ec39cbd980364 (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -o - %s -O2 | FileCheck %s

// Make sure the call to b() doesn't get optimized out.
extern struct x {char& x,y;}y;
int b();      
int a() { if (!&y.x) b(); }

// CHECK: @_Z1bv
OpenPOWER on IntegriCloud