blob: be4604059fe996b10a2dab9dcb857ddd9bbd31ab [file] [log] [blame]
Marshall Clowca0be232013-07-23 17:05:24 +00001// -*- C++ -*-
2//===----------------------------------------------------------------------===//
3//
Chandler Carruth57b08b02019-01-19 10:56:40 +00004// 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 Clowca0be232013-07-23 17:05:24 +00007//
8//===----------------------------------------------------------------------===//
Asiri Rathnayake6edc12c2016-05-28 08:57:35 +00009
10// UNSUPPORTED: c++98, c++03, c++11
11
Marshall Clowca0be232013-07-23 17:05:24 +000012#include <string>
13#include <cassert>
14
JF Bastien2df59c52019-02-04 20:31:13 +000015int main(int, char**)
Marshall Clowca0be232013-07-23 17:05:24 +000016{
Marshall Clow3ceafc72013-10-05 21:18:32 +000017 using std::string;
Marshall Clowca0be232013-07-23 17:05:24 +000018
Marshall Clow3ceafc72013-10-05 21:18:32 +000019 string foo = ""s; // should fail w/conversion operator not found
JF Bastien2df59c52019-02-04 20:31:13 +000020
21 return 0;
Marshall Clowca0be232013-07-23 17:05:24 +000022}