Add a test to the testsuite in order to verify the presence of a
semicolon at the end of an external type item declaration.
gcc/testsuite/ChangeLog:
* rust/compile/extern_type_item_missing_semi.rs: New failing
test.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
--- /dev/null
+// { dg-additional-options "-fsyntax-only" }
+
+extern "C" {
+ type F;
+ type E // { dg-error "failed to parse" }
+} // { dg-error "expecting" }
+// { dg-error "failed to parse item in crate" "" { target *-*-* } .-1 }