Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/constexpr-sizeof1.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/64603 |
2 // { dg-do compile { target c++11 } } | |
3 | |
4 template <int i> constexpr int find_longest_name() | |
5 { | |
6 return sizeof("Main") - 1; | |
7 } | |
8 | |
9 template <int i, int l = find_longest_name<i>()> void create_all_loggers() | |
10 {} | |
11 | |
12 int main() | |
13 { | |
14 create_all_loggers<1>(); | |
15 } |