blob: fbd16a9995e967e693fa0fae1db8cb2b38c71496 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Bug: g++ fails to actually instantiate templates to the specifications of
// guiding decls.
// Special g++ Options: -g -ansi -pedantic-errors -fguiding-decls
template <class T> inline T min (T a, T b) { return a<b?a:b; }
double min (double, double);
int main () {
return (int) min (0, 1.0);
}
|