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
/
CodeGenCXX
/
PR37481.cpp
blob
fba2ffdc8488f5d87ca98d815c33cadb74913fd6
1
// RUN: %clang_cc1 -o /dev/null -emit-llvm -std=c++17 -triple x86_64-pc-windows-msvc %s
2
3
struct
Foo
{
4
virtual
void
f
();
5
virtual
void
g
();
6
};
7
8
void
Foo
::
f
() {}
9
void
Foo
::
g
() {}
10
11
template
<
void
(
Foo
::*)()>
12
void
h
() {}
13
14
void
x
() {
15
h
<&
Foo
::
f
>();
16
h
<&
Foo
::
g
>();
17
}