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 Sambucint a() { if (!&y.x) b(); } 7*0a6a1f1dSLionel Sambuc 8*0a6a1f1dSLionel Sambuc // CHECK: @_Z1bv 9