22 lines · cpp
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9// UNSUPPORTED: c++03, c++1110 11#include <string>12 13void f() {14 {15 using std::string;16 string foo = ""s; // expected-error {{no matching literal operator}}17 }18 {19 std::string foo = ""s; // expected-error {{no matching literal operator}}20 }21}22