]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Sema/arm64-inline-asm.c
Vendor import of clang release_40 branch r292732:
[FreeBSD/FreeBSD.git] / test / Sema / arm64-inline-asm.c
1 // RUN: %clang_cc1 -triple arm64-apple-ios7.1 -fsyntax-only -verify %s
2
3 void foo() {
4   asm volatile("USE(%0)" :: "z"(0LL));
5   asm volatile("USE(%x0)" :: "z"(0LL));
6   asm volatile("USE(%w0)" :: "z"(0));
7
8   asm volatile("USE(%0)" :: "z"(0)); // expected-warning {{value size does not match register size specified by the constraint and modifier}} expected-note {{use constraint modifier "w"}}
9 }