opnsense-src/test/SemaTemplate/instantiate-attr.cpp

8 lines
158 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
2009-11-18 09:59:57 -05:00
template <typename T>
struct A {
char a __attribute__((aligned(16)));
};
int a[sizeof(A<int>) == 16 ? 1 : -1];