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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
PR41139.cpp
blob
e120e42b8b5fbcaa2e95e58879cc6a8b28691c61
1
// RUN: %clang_cc1 -fsyntax-only -std=c++17 -verify %s
2
3
// expected-no-diagnostics
4
5
// This test should not crash.
6
int
f1
(
unsigned
) {
return
0
; }
7
8
template
<
class
R
,
class
...
Args
>
9
struct
S1
{
10
S1
(
R
(*
f
)(
Args
...) ) {}
11
};
12
13
int
main
() {
14
S1
s1
(
f1
);
15
}