Marshall Clow | ca0be23 | 2013-07-23 17:05:24 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===----------------------------------------------------------------------===// |
| 3 | // |
Chandler Carruth | 57b08b0 | 2019-01-19 10:56:40 +0000 | [diff] [blame] | 4 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 5 | // See https://llvm.org/LICENSE.txt for license information. |
| 6 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Marshall Clow | ca0be23 | 2013-07-23 17:05:24 +0000 | [diff] [blame] | 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
Asiri Rathnayake | 6edc12c | 2016-05-28 08:57:35 +0000 | [diff] [blame] | 9 | |
| 10 | // UNSUPPORTED: c++98, c++03, c++11 |
| 11 | |
Marshall Clow | ca0be23 | 2013-07-23 17:05:24 +0000 | [diff] [blame] | 12 | #include <string> |
| 13 | #include <cassert> |
| 14 | |
JF Bastien | 2df59c5 | 2019-02-04 20:31:13 +0000 | [diff] [blame] | 15 | int main(int, char**) |
Marshall Clow | ca0be23 | 2013-07-23 17:05:24 +0000 | [diff] [blame] | 16 | { |
Marshall Clow | 3ceafc7 | 2013-10-05 21:18:32 +0000 | [diff] [blame] | 17 | using std::string; |
Marshall Clow | ca0be23 | 2013-07-23 17:05:24 +0000 | [diff] [blame] | 18 | |
Marshall Clow | 3ceafc7 | 2013-10-05 21:18:32 +0000 | [diff] [blame] | 19 | string foo = ""s; // should fail w/conversion operator not found |
JF Bastien | 2df59c5 | 2019-02-04 20:31:13 +0000 | [diff] [blame] | 20 | |
| 21 | return 0; |
Marshall Clow | ca0be23 | 2013-07-23 17:05:24 +0000 | [diff] [blame] | 22 | } |