Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.pt/memtemp11.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
// { dg-do link } // GROUPS passed templates membertemplates extern "C" int printf(const char*, ...); struct S { template <class U> S(U u, int i) {} template <class T> T foo(T t) { printf("Hello, world.\n"); return t; } }; int main() { S s(3, 4); int i = s.foo(3); s.foo("hello"); s.foo(s); S s2("hello", 5); }