Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
array27.C
blob: 95680dd15fd8eed46864f210d35edb7bb91526f0 [
file
] [
log
] [
blame
]
// PR c++/47808
// { dg-options "" }
template
<
typename
T
>
inline
T abs
(
T
const
&
x
)
{
return
x
;
}
template
<
typename
T
>
void
f
(
T
)
{
typedef
int
ai
[(
abs
(
0.1
)
>
0
)
?
1
:
-
1
];
}
int
main
()
{
f
(
1
);
}