blob: 2d936214be69e31ae68979b6000865ea97a4f502 [file] [log] [blame]
Tim Northovera2ee4332014-03-29 15:09:45 +00001// RUN: %clang_cc1 -triple arm64-apple-ios7.1 -fsyntax-only -verify %s
2void foo() {
3 asm volatile("USE(%0)" :: "z"(0LL));
4 asm volatile("USE(%x0)" :: "z"(0LL));
5 asm volatile("USE(%w0)" :: "z"(0));
6
7 asm volatile("USE(%0)" :: "z"(0)); // expected-warning {{value size does not match register size specified by the constraint and modifier}}
8}