1 // RUN: %clang_cc1 -triple i686-apple-darwin9 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 namespace rdar8745206
{
11 struct Sub
: public Base
{
16 int check
[sizeof(Sub
) == 5 ? 1 : -1];
28 struct Sub
: virtual Base
{
33 int check
[sizeof(Sub
) == 13 ? 1 : -1];
37 namespace llvm_support_endian
{
39 template<typename
, bool> struct X
;
43 template<typename T
> struct X
<T
, true> {
50 template<> struct X
<long double, true> {
55 int check1
[__alignof(X
<int, true>) == 1 ? 1 : -1];
56 int check2
[__alignof(X
<long double, true>) == 2 ? 1 : -1];