// RUN: %clang_cc1 -triple x86_64-apple-darwin10.0.0 -fsyntax-only -verify %s -Winvalid-offsetof -std=c++98
;
;
void
;
;
int o = ; // expected-warning{{offset of on non-POD type}}
const int o2 = sizeof;
;
// Constant and non-constant offsetof expressions
void
// Bitfields
;
int test3 = ; // expected-error{{cannot compute offset of bit-field 'j'}}
// offsetof referring to members of a base class.
;
;
;
int derived1;
int derived2;
int derived3;
// offsetof referring to anonymous struct in base.
// PR7769
;
;
int anonstruct;
;
int ltor = ; // \
expected-error {{reference to non-static member function must be called}}