C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git] / gcc / testsuite / g++.dg / pr99218.C
blob477a6a2b117fb04197c91998abf594289f3ac8f2
1 // { dg-do compile }
2 // { dg-require-effective-target c++17 }
4 struct Data
6   Data() {}
7   ~Data() {}
9   long long i;
12 struct X
14   Data a;
15   int b;
18 template<class T>
19 X get(T const&)
21   return X{};
24 template<class... Ts>
25 struct pack_type : Ts...
26 {};
28 int main()
30   pack_type<X>{get(1)};