view gcc/testsuite/g++.dg/lto/pr85176_0.C @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
line wrap: on
line source

// { dg-lto-do link }
// { dg-require-effective-target lto_incremental }
// { dg-lto-options { { -flto -g1 } } }
// { dg-extra-ld-options "-r -nostdlib" }
namespace a {
    template <typename b, typename = b> class c;
    template <typename b, typename d> void e(c<b, d> &);
    void operator<<(c<char> &f, const char *) { e(f); }
    extern c<char> cout;
}
int main() { a::cout << ""; }