aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/noncompile/invalid_asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/noncompile/invalid_asm.c')
-rw-r--r--gcc/testsuite/gcc.dg/noncompile/invalid_asm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/noncompile/invalid_asm.c b/gcc/testsuite/gcc.dg/noncompile/invalid_asm.c
new file mode 100644
index 0000000..0cb1479
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/noncompile/invalid_asm.c
@@ -0,0 +1,4 @@
+asm_invalid_register_name()
+{
+ asm("":::"this_is_an_invalid_register_name"); /* { dg-error "unknown register" } */
+}