Marshall Clow | 8de32cb | 2013-10-12 19:09:47 +0000 | [diff] [blame] | 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 6 | // Source Licenses. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
Asiri Rathnayake | 6edc12c | 2016-05-28 08:57:35 +0000 | [diff] [blame] | 10 | // UNSUPPORTED: c++98, c++03, c++11 |
Marshall Clow | 8de32cb | 2013-10-12 19:09:47 +0000 | [diff] [blame] | 11 | // test <cstdio> |
| 12 | |
Eric Fiselier | d04c685 | 2016-06-01 21:35:39 +0000 | [diff] [blame] | 13 | // gets |
Marshall Clow | 8de32cb | 2013-10-12 19:09:47 +0000 | [diff] [blame] | 14 | |
| 15 | #include <cstdio> |
| 16 | |
| 17 | int main() |
| 18 | { |
Marshall Clow | 8de32cb | 2013-10-12 19:09:47 +0000 | [diff] [blame] | 19 | (void) std::gets((char *) NULL); |
Marshall Clow | 8de32cb | 2013-10-12 19:09:47 +0000 | [diff] [blame] | 20 | } |