blob: 721440d8a3a54c0b6b14ad534bcaddb9805759c0 [file] [log] [blame]
Marshall Clowca0be232013-07-23 17:05:24 +00001// -*- 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//===----------------------------------------------------------------------===//
Asiri Rathnayake6edc12c2016-05-28 08:57:35 +000010
11// UNSUPPORTED: c++98, c++03, c++11
12
Marshall Clowca0be232013-07-23 17:05:24 +000013#include <string>
14#include <cassert>
15
16int main()
17{
Marshall Clow3ceafc72013-10-05 21:18:32 +000018 using std::string;
Marshall Clowca0be232013-07-23 17:05:24 +000019
Marshall Clow3ceafc72013-10-05 21:18:32 +000020 string foo = ""s; // should fail w/conversion operator not found
Marshall Clowca0be232013-07-23 17:05:24 +000021}