1 // RUN: %clang_cc1 -verify %s 2 // expected-no-diagnostics 3 4 5 struct StringPiece { 6 template <typename T, 7 typename = decltype(T())> StringPieceStringPiece8 StringPiece(T str) {} 9 }; 10 f(StringPiece utf8)11void f(StringPiece utf8) {} 12 13 struct S { 14 }; 15 G()16void G() { 17 const auto s = S{}; 18 StringPiece U{s}; 19 } 20 21