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