Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-sizeof1.C

raw
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 }