1*c9bd88e6SHans Wennborg // RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - %s -O2 | FileCheck %s
2f7f9f687SEli Friedman 
3f7f9f687SEli Friedman // Make sure the call to b() doesn't get optimized out.
4f7f9f687SEli Friedman extern struct x {char& x,y;}y;
5f7f9f687SEli Friedman int b();
a()6f7f9f687SEli Friedman int a() { if (!&y.x) b(); }
7442e4f7fSHans Wennborg 
8442e4f7fSHans Wennborg // CHECK: @_Z1bv
9