1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 void f1() { 4 // PR7673: Some versions of GCC support an empty clobbers section. 5 asm ("ret" : : :); 6 } 7 8 void 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