repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
pr99218.C
blob
477a6a2b117fb04197c91998abf594289f3ac8f2
1
// { dg-do compile }
2
// { dg-require-effective-target c++17 }
3
4
struct Data
5
{
6
Data() {}
7
~Data() {}
8
9
long long i;
10
};
11
12
struct X
13
{
14
Data a;
15
int b;
16
};
17
18
template<class T>
19
X get(T const&)
20
{
21
return X{};
22
}
23
24
template<class... Ts>
25
struct pack_type : Ts...
26
{};
27
28
int main()
29
{
30
pack_type<X>{get(1)};
31
}