gcc/testsuite/g++.dg/ipa/pr120146.C
raw| 1 | // { dg-do compile } |
| 2 | // { dg-options "-O -fipa-pta" } |
| 3 | |
| 4 | struct basic_ios { |
| 5 | ~basic_ios(); |
| 6 | }; |
| 7 | struct basic_istream : virtual basic_ios {}; |
| 8 | template <typename> struct basic_ifstream : basic_istream { |
| 9 | template <typename _Path> basic_ifstream(_Path, int); |
| 10 | }; |
| 11 | extern template class basic_ifstream<char>; |
| 12 | void CompareFiles_path2() { basic_ifstream<char>(CompareFiles_path2, 0); } |