blob: 7089fa4b7df816dd7cfe729a66c11a1e5cf4d573 [file] [log] [blame]
Steven Wucb0d13f2015-01-16 23:05:28 +00001// RUN: %clang_cc1 %s -triple i686-apple-darwin -verify -fsyntax-only -fno-gnu-inline-asm
2
Steven Wu2baa53a2015-04-28 21:49:09 +00003asm ("INST r1, 0"); // expected-error {{GNU-style inline assembly is disabled}}
Steven Wu6b72a672015-05-11 21:14:09 +00004
5void foo() __asm("__foo_func"); // AsmLabel is OK
6int foo1 asm("bar1") = 0; // OK
7
Steven Wucb0d13f2015-01-16 23:05:28 +00008void f (void) {
9 long long foo = 0, bar;
10 asm volatile("INST %0, %1" : "=r"(foo) : "r"(bar)); // expected-error {{GNU-style inline assembly is disabled}}
11 return;
12}