1 // PR c++/58281 - Problem with explicitly instantiated constexpr template
3 // { dg-do compile { target c++11 } }
4 // { dg-options "-fdump-tree-optimized" }
13 extern template bool f<int>(int);
15 bool g (int x) { return f (x); }
17 template bool f<int>(int);
19 // Verify that the defintions of both f() and g() are emitted.
20 // { dg-final { scan-tree-dump-times ";; Function f" 1 "optimized" } }
21 // { dg-final { scan-tree-dump-times ";; Function g" 1 "optimized" } }