blob: aa34fa3bd2c932d56e13dfcadc2ec39cbd980364 [file] [log] [blame]
Hans Wennborg442e4f72013-12-13 22:43:52 +00001// RUN: %clang_cc1 -emit-llvm -cxx-abi itanium -o - %s -O2 | FileCheck %s
Eli Friedmanf7f9f682009-05-30 21:09:44 +00002
3// Make sure the call to b() doesn't get optimized out.
4extern struct x {char& x,y;}y;
5int b();
6int a() { if (!&y.x) b(); }
Hans Wennborg442e4f72013-12-13 22:43:52 +00007
8// CHECK: @_Z1bv