brintos

brintos / llvm-project-archived public Read only

0
0
Text · 280 B · fd0789d Raw
21 lines · cpp
1// RUN: %clang_cc1 -verify %s2// expected-no-diagnostics3 4 5struct StringPiece {6  template <typename T,7           typename = decltype(T())>8             StringPiece(T str) {}9};10 11void f(StringPiece utf8) {}12 13struct S {14};15 16void G() {17  const auto s = S{};18  StringPiece U{s};19}20 21