repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ada: Move special case for null string literal from frontend to backend
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp23.C
blob
3111f41b5fd1c0f69200fdef9d436b6aef56cf60
1
// { dg-do link }
2
// GROUPS passed templates membertemplates
3
extern "C" int printf(const char*, ...);
4
5
template <class X>
6
struct S
7
{
8
S()
9
{ printf ("In S::S()\n"); f(3); }
10
11
S(char)
12
{ printf ("In S::S(char)\n"); f(*this); }
13
14
template <class U>
15
void f(U u)
16
{ printf ("In S::f(U)\nsizeof(U) == %d\n", sizeof(u)); }
17
18
int c[16];
19
};
20
21
int main()
22
{
23
S<char*> s;
24
}