[InstCombine] Preserve NSW flags for `lshr (mul nuw X, C1), C2 -> mul nuw nsw X,...
[llvm-project.git] / clang / test / SemaTemplate / sugar-crashes.cpp
blobfd0789d044e298ef6c1cd80b9a4a24bda648b949
1 // RUN: %clang_cc1 -verify %s
2 // expected-no-diagnostics
5 struct StringPiece {
6 template <typename T,
7 typename = decltype(T())>
8 StringPiece(T str) {}
9 };
11 void f(StringPiece utf8) {}
13 struct S {
16 void G() {
17 const auto s = S{};
18 StringPiece U{s};