Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / PCH / asm-label.cpp
blobdd68c11409ff57ce1e86e92000ef319291a20e16
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
11 "mov %w[foo], %w[foo]"
12 : [foo] "=r"(bar)
13 : [foo2] "r"(bar), [foo3] "r"(bar), [foo4] "r"(bar)
15 : some_path
18 #else
19 void test() {
20 MyMethod();
21 // expected-no-diagnostics
23 #endif