2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2007-11-22 07:27:34 +08:00
|
|
|
|
|
|
|
void f1() {
|
|
|
|
asm ("ret" : : :); // expected-error {{expected string literal}}
|
|
|
|
}
|
2008-02-10 03:57:29 +08:00
|
|
|
|
|
|
|
void f2() {
|
|
|
|
asm("foo" : "=r" (a)); // expected-error {{use of undeclared identifier 'a'}}
|
|
|
|
asm("foo" : : "r" (b)); // expected-error {{use of undeclared identifier 'b'}}
|
|
|
|
}
|
2008-05-28 07:32:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
// rdar://5952468
|
|
|
|
__asm ; // expected-error {{expected '(' after 'asm'}}
|
|
|
|
|