blob: 75bd64d7ff33c44a05470061537cb54caf87654d (
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);
main () {
return (int) min (0, 1.0);
}
|