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> MyMethod()6void 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 test()19void test() { 20 MyMethod(); 21 // expected-no-diagnostics 22 } 23 #endif 24