2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-11-07 14:07:58 +08:00
|
|
|
template <typename T>
|
|
|
|
struct A {
|
|
|
|
char a __attribute__((aligned(16)));
|
2010-05-18 07:46:49 +08:00
|
|
|
|
|
|
|
struct B {
|
|
|
|
typedef T __attribute__((aligned(16))) i16;
|
|
|
|
i16 x;
|
|
|
|
};
|
2009-11-07 14:07:58 +08:00
|
|
|
};
|
|
|
|
int a[sizeof(A<int>) == 16 ? 1 : -1];
|
2010-05-18 07:46:49 +08:00
|
|
|
int a2[sizeof(A<int>::B) == 16 ? 1 : -1];
|
2009-11-07 14:07:58 +08:00
|
|
|
|