blob: ac0a378367e299c3231c4b319d943583d164c491 [file] [log] [blame]
// Build don't link:
// Origin: "Chen, Wen-Ke" <chwk@cs.arizona.edu>
template <class T>
bool operator!=(const T&, const T&);
enum MsgType {
MSG_DATA
};
class C {
public:
MsgType mType : 8;
};
int main(void)
{
extern C& c;
c.mType = MSG_DATA;
if (c.mType != MSG_DATA)
return -1;
return 0;
}