Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
pointer1.C
blob: 0b1e3ae072e52be3bca79fee0c16ff00a53ba975 [
file
] [
log
] [
blame
]
// { dg-do assemble }
template
<
class
T
>
struct
S1
{
};
template
<
class
T
>
struct
S2
{
typedef
T
*
pointer_t
;
};
int
f
(
S2
<
S1
<int>
>::
pointer_t
p1
,
S2
<
S1
<int>
>::
pointer_t
p2
)
{
return
(
int
)
(
p1
-
p2
);
}