Debian Codegraph @

clang/test/SemaTemplate/sugar-crashes.cpp

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