[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / cxx-attrs-packexpansion.cpp
blob6d292ec1e3e00e2cc7fd4b32b0f80d9826c8eda1
1 // Test this without pch.
2 // RUN: %clang_cc1 -include %s -emit-llvm -o - %s
4 // Test with pch.
5 // RUN: %clang_cc1 -emit-pch -o %t %s
6 // RUN: %clang_cc1 -include-pch %t -emit-llvm -o - %s
8 #ifndef HEADER
9 #define HEADER
11 template<typename T, typename... Types>
12 struct static_variant {
13 alignas(Types...) T storage[10];
16 #else
18 struct A {
19 static_variant<int> a;
21 struct B {
22 static_variant<A> _b;
25 #endif