| 1 |
// assume __gnu_cxx::stdio_filebuf is available if this program compiles |
| 2 |
|
| 3 |
#include <ext/stdio_filebuf.h> |
| 4 |
#include <iostream> |
| 5 |
|
| 6 |
int main() { |
| 7 |
const int fd = 0; |
| 8 |
__gnu_cxx::stdio_filebuf<char> buf(fd, std::ios_base::in); |
| 9 |
return buf.fd(); |
| 10 |
} |