3 // COMDAT folding increases runtime by > 80x
4 // REQUIRED_ARGS(windows): -L/OPT:NOICF
6 // Apparently omf or optlink does not support more than 32767 symbols.
9 // Generate \sum_{i=0}^{14} 2^i = 32767 template instantiations
10 // (each with 3 sections) to use more than 64Ki sections in total.
12 size_t foo(size_t i, size_t mask)()
17 return foo!(i + 1, mask) + foo!(i + 1, mask | (1UL << i));
22 assert(foo!(0, 0) != 0);