You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
542 B
12 lines
542 B
// REQUIRES: x86-registered-target
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s -Wimplicit-int-conversion -triple x86_64-gnu-linux -fasm-blocks
|
|
|
|
void NotAllowedInInlineAsm(_ExtInt(9) in, _ExtInt(9) out) {
|
|
__asm { mov eax, in} // expected-error{{invalid type '_ExtInt(9)' in asm input}}
|
|
__asm { mov out, eax} // expected-error{{invalid type '_ExtInt(9)' in asm output}}
|
|
|
|
asm("" : "=g" (in));// expected-error{{invalid type '_ExtInt(9)' in asm input}}
|
|
asm("" :: "r" (out));// expected-error{{invalid type '_ExtInt(9)' in asm output}}
|
|
|
|
}
|