blob: df2e16feea5bc78706cb5ba3ab926fb8fcba07f0 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Anders Carlssoneecf8472007-11-21 23:27:34 +00002
3void f1() {
4 asm ("ret" : : :); // expected-error {{expected string literal}}
5}
Anders Carlsson8bd36fc2008-02-09 19:57:29 +00006
7void f2() {
8 asm("foo" : "=r" (a)); // expected-error {{use of undeclared identifier 'a'}}
9 asm("foo" : : "r" (b)); // expected-error {{use of undeclared identifier 'b'}}
10}
Chris Lattneraec3a1e2008-05-27 23:32:43 +000011
12
13// rdar://5952468
14__asm ; // expected-error {{expected '(' after 'asm'}}
15