1 // Test this without pch. 2 // RUN: %clang_cc1 -include %s -emit-llvm -o - %s 3 4 // Test with pch. 5 // RUN: %clang_cc1 -emit-pch -o %t %s 6 // RUN: %clang_cc1 -include-pch %t -emit-llvm -o - %s 7 8 #ifndef HEADER 9 #define HEADER 10 11 template<typename T, typename... Types> 12 struct static_variant { 13 alignas(Types...) T storage[10]; 14 }; 15 16 #else 17 18 struct A { 19 static_variant<int> a; 20 }; 21 struct B { 22 static_variant<A> _b; 23 }; 24 25 #endif 26