blob: 036f2eaf75301d41dec4f4bbcaf102ef5fa491ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// { dg-do compile { target c++11 } }
void swallow(...) {}
template<int... Is>
void foo() {
int t = 0;
swallow(
([&t]{return 0;}(), Is)...
);
}
int main()
{
foo<1, 2>();
return 0;
}
|