1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10.0.0 -fsyntax-only -std=c++11 -verify %s -Winvalid-offsetof
2 // RUN: %clang_cc1 -triple x86_64-apple-darwin10.0.0 -fsyntax-only -std=c++11 -verify %s -Winvalid-offsetof -fexperimental-new-constant-interpreter
10 NonPOD fieldThatPointsToANonPODType
;
14 int i
= __builtin_offsetof(P
, fieldThatPointsToANonPODType
.m
); // expected-warning{{offset of on non-standard-layout type 'P'}}
17 struct StandardLayout
{
21 int o
= __builtin_offsetof(StandardLayout
, x
); // no-warning