26 lines · cpp
1// Test this without pch.2// RUN: %clang_cc1 -include %s -emit-llvm -o - %s3 4// Test with pch.5// RUN: %clang_cc1 -emit-pch -o %t %s6// RUN: %clang_cc1 -include-pch %t -emit-llvm -o - %s7 8#ifndef HEADER9#define HEADER10 11template<typename T, typename... Types>12struct static_variant {13 alignas(Types...) T storage[10];14};15 16#else17 18struct A {19 static_variant<int> a;20};21struct B {22 static_variant<A> _b;23};24 25#endif26