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
/
PCH
/
asm-label.cpp
blob
dd68c11409ff57ce1e86e92000ef319291a20e16
1
// RUN: %clang_cc1 -emit-pch %s -o %t
2
// RUN: %clang_cc1 -include-pch %t %s -verify
3
#ifndef HEADER_H
4
#define HEADER_H
5
template
<
int
=
0
>
6
void
MyMethod
() {
7
void
*
bar
;
8
some_path
:
9
asm goto
10
(
11
"mov %w[foo], %w[foo]"
12
: [
foo
]
"=r"
(
bar
)
13
: [
foo2
]
"r"
(
bar
), [
foo3
]
"r"
(
bar
), [
foo4
]
"r"
(
bar
)
14
:
15
:
some_path
16
);
17
}
18
#else
19
void
test
() {
20
MyMethod
();
21
// expected-no-diagnostics
22
}
23
#endif