forked from OSchip/llvm-project
15 lines
352 B
C
15 lines
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}}
|
||
|
|
||
|
}
|