blob: 1916d3463de5f343a8d1b50e887b5f8c5446864c [file] [log] [blame]
Chad Rosier8b332652013-01-24 20:46:39 +00001// REQUIRES: disabled
Chad Rosierb2e21572013-01-22 19:38:32 +00002// RUN: %clang_cc1 %s -triple x86_64-apple-darwin10 -fasm-blocks -Wno-microsoft -verify -fsyntax-only
Bob Wilsonb0f6b9c2012-09-24 19:57:59 +00003
4void t1(void) {
Eli Friedman5f1385b2012-10-23 02:43:30 +00005 __asm __asm // expected-error {{__asm used with no assembly instructions}}
6}
7
8void f() {
Chad Rosier0adc4d22012-10-26 18:33:59 +00009 int foo;
Eli Friedman5f1385b2012-10-23 02:43:30 +000010 __asm {
11 mov eax, eax
12 .unknowndirective // expected-error {{unknown directive}}
13 }
14 f();
15 __asm {
16 mov eax, 1+=2 // expected-error 2 {{unknown token in expression}}
17 }
18 f();
19 __asm {
20 mov eax, 1+++ // expected-error 2 {{unknown token in expression}}
21 }
Chad Rosier96bd14b2013-01-18 00:51:29 +000022 f();
23 __asm {
24 mov eax, LENGTH bar // expected-error {{Unable to lookup expr!}}
25 }
26 f();
27 __asm {
28 mov eax, SIZE bar // expected-error {{Unable to lookup expr!}}
29 }
30 f();
31 __asm {
32 mov eax, TYPE bar // expected-error {{Unable to lookup expr!}}
33 }
Bob Wilsonb0f6b9c2012-09-24 19:57:59 +000034}