Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ext/dllimport11.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR target/23589 // Template member functions do not get dllimport status of class. // { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } struct __attribute__((dllimport)) Foo { template <class T> Foo (T); }; void a (int i) { Foo f(i); } template <class T> Foo::Foo (T) {} // no dllimport warnings on definition.