2015-01-17 07:05:28 +08:00
|
|
|
// RUN: %clang_cc1 %s -triple i686-apple-darwin -verify -fsyntax-only -fno-gnu-inline-asm
|
|
|
|
|
2015-04-29 05:49:09 +08:00
|
|
|
asm ("INST r1, 0"); // expected-error {{GNU-style inline assembly is disabled}}
|
2015-01-17 07:05:28 +08:00
|
|
|
void f (void) {
|
|
|
|
long long foo = 0, bar;
|
|
|
|
asm volatile("INST %0, %1" : "=r"(foo) : "r"(bar)); // expected-error {{GNU-style inline assembly is disabled}}
|
|
|
|
return;
|
|
|
|
}
|