repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Preserve NSW flags for `lshr (mul nuw X, C1), C2 -> mul nuw nsw X,...
[llvm-project.git]
/
clang
/
test
/
SemaTemplate
/
sugar-crashes.cpp
blob
fd0789d044e298ef6c1cd80b9a4a24bda648b949
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