summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/instantiate-attr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/instantiate-attr.cpp')
-rw-r--r--test/SemaTemplate/instantiate-attr.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaTemplate/instantiate-attr.cpp b/test/SemaTemplate/instantiate-attr.cpp
new file mode 100644
index 0000000..08ba9c3
--- /dev/null
+++ b/test/SemaTemplate/instantiate-attr.cpp
@@ -0,0 +1,7 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+template <typename T>
+struct A {
+ char a __attribute__((aligned(16)));
+};
+int a[sizeof(A<int>) == 16 ? 1 : -1];
+
OpenPOWER on IntegriCloud