Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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
);
}