opnsense-src/test/CodeGenCXX/reference-field.cpp

7 lines
189 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -emit-llvm -o - %s -O2 | grep "@_Z1bv"
2009-06-02 13:58:47 -04:00
// Make sure the call to b() doesn't get optimized out.
extern struct x {char& x,y;}y;
int b();
int a() { if (!&y.x) b(); }