Marshall Clow | ca0be23 | 2013-07-23 17:05:24 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===----------------------------------------------------------------------===// |
| 3 | // |
| 4 | // The LLVM Compiler Infrastructure |
| 5 | // |
| 6 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 7 | // Source Licenses. See LICENSE.TXT for details. |
| 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | #include <string> |
| 11 | #include <cassert> |
| 12 | |
| 13 | int main() |
| 14 | { |
| 15 | #if _LIBCPP_STD_VER > 11 |
Marshall Clow | 3ceafc7 | 2013-10-05 21:18:32 +0000 | [diff] [blame^] | 16 | using std::string; |
Marshall Clow | ca0be23 | 2013-07-23 17:05:24 +0000 | [diff] [blame] | 17 | |
Marshall Clow | 3ceafc7 | 2013-10-05 21:18:32 +0000 | [diff] [blame^] | 18 | string foo = ""s; // should fail w/conversion operator not found |
Marshall Clow | ca0be23 | 2013-07-23 17:05:24 +0000 | [diff] [blame] | 19 | #else |
| 20 | #error |
| 21 | #endif |
| 22 | } |