Index: test/Misc/inline-asm-diags.c =================================================================== --- /dev/null +++ test/Misc/inline-asm-diags.c @@ -0,0 +1,14 @@ +// RUN: %clang_cc1 -S -emit-obj -triple armv7a-arm-none-eabi %s -o /dev/null -verify + +void foo2() { + asm(" wibble"); // expected-error{{invalid instruction}} +} + +void foo() { + asm(" .word -bar"); // expected-error {{expected relocatable expression}} + asm(" .word -foo"); // expected-error {{expected relocatable expression}} +} + +// expected-note@1 {{instantiated into assembly here}} +// expected-note@1 {{instantiated into assembly here}} +// expected-note@1 {{instantiated into assembly here}}