]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/constexpr-61323.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-61323.C
CommitLineData
6fba3d61
PC
1// PR c++/61323
2// { dg-do compile { target c++11 } }
3
4char* table1[10];
5template<unsigned size, char*(&table)[size]> void test1() { }
6void tester1() { test1<10,table1>(); }
7
8static char* table2[10];
9template<unsigned size, char*(&table)[size]> void test2() { }
10void tester2() { test2<10,table2>(); }
11
12const char* table3[10];
13template<unsigned size, const char*(&table)[size]> void test3() { }
14void tester3() { test3<10,table3>(); }
15
16const char* const table4[10] = {};
17template<unsigned size, const char*const (&table)[size]> void test4() { }
18void tester4() { test4<10,table4>(); }
19
20const char* volatile table5[10] = {};
21template<unsigned size, const char* volatile (&table)[size]> void test5() { }
22void tester5() { test5<10,table5>(); }
23
24const char* const table6[10] = {};
25template<unsigned size, const char*const (&table)[size]> void test6() { }
26void tester6() { test6<10,table6>(); }
This page took 1.707286 seconds and 5 git commands to generate.