1// RUN: %clang_cc1 -fsyntax-only -verify %s 2 3void f1() { 4 // PR7673: Some versions of GCC support an empty clobbers section. 5 asm ("ret" : : :); 6} 7 8void f2() { 9 asm("foo" : "=r" (a)); // expected-error {{use of undeclared identifier 'a'}} 10 asm("foo" : : "r" (b)); // expected-error {{use of undeclared identifier 'b'}} 11} 12 13 14// rdar://5952468 15__asm ; // expected-error {{expected '(' after 'asm'}} 16 17// <rdar://problem/10465079> - Don't crash on wide string literals in 'asm'. 18int foo asm (L"bar"); // expected-error {{cannot use wide string literal in 'asm'}} 19 20