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
* c-common.c (get_priority): Add check for
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp28.C
blob
4be565a04d95bf7f5758977395c952d7cc18abd1
1
// { dg-do run }
2
extern "C" void abort();
3
4
int k;
5
6
template <class X>
7
struct S
8
{
9
template <class U>
10
void f(U u)
11
{ ++k; g(u); }
12
13
template <class U>
14
void g(U u)
15
{ ++k; }
16
17
int c[16];
18
};
19
20
int main()
21
{
22
S<char*> s;
23
s.f(3);
24
s.f("adf");
25
26
if (k != 4)
27
abort();
28
}