xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/reference-field.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - %s -O2 | FileCheck %s
2f4a2713aSLionel Sambuc 
3f4a2713aSLionel Sambuc // Make sure the call to b() doesn't get optimized out.
4f4a2713aSLionel Sambuc extern struct x {char& x,y;}y;
5f4a2713aSLionel Sambuc int b();
a()6f4a2713aSLionel Sambuc int a() { if (!&y.x) b(); }
7*0a6a1f1dSLionel Sambuc 
8*0a6a1f1dSLionel Sambuc // CHECK: @_Z1bv
9