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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
mangle10.C
blob
b24fe716ed5037c2ad76e83c9878cf1c4a5af542
1
// { dg-do assemble }
2
3
template<int T>
4
struct A {
5
char *a;
6
A (const char* x)
7
{
8
a = (char*) x;
9
}
10
};
11
12
template<int U, int V, class T>
13
struct B {
14
T a[V-U+1];
15
friend A<V-U+1> f (B const &x)
16
{
17
return A<V-U+1> ((char*) x.a);
18
}
19
};
20
21
const int a = 8;
22
23
typedef B<1,a,int> C;
24
struct D {
25
C x;
26
};