зеркало из https://github.com/microsoft/clang-1.git
15 строки
352 B
C
15 строки
352 B
C
|
// RUN: clang %s -verify -fsyntax-only
|
||
|
|
||
|
void
|
||
|
f()
|
||
|
{
|
||
|
int i;
|
||
|
|
||
|
asm ("foo\n" : : "a" (i + 2));
|
||
|
asm ("foo\n" : : "a" (f())); // expected-error {{invalid type 'void' in asm input}}
|
||
|
|
||
|
asm ("foo\n" : "=a" (f())); // expected-error {{invalid lvalue in asm output}}
|
||
|
asm ("foo\n" : "=a" (i + 2)); // expected-error {{invalid lvalue in asm output}}
|
||
|
|
||
|
}
|