Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/variadic163.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/63786 |
2 // { dg-do compile { target c++11 } } | |
3 // { dg-options "" } | |
4 | |
5 template <int... Is> | |
6 int f(int i) { | |
7 switch (i) { | |
8 case Is: // { dg-error "not expanded" } | |
9 return 0; | |
10 } | |
11 | |
12 switch (i) { | |
13 case 0 ...Is: // { dg-error "not expanded" } | |
14 return 0; | |
15 } | |
16 return 0; | |
17 } | |
18 | |
19 int main() { | |
20 f<1,2,3>(1); | |
21 } |