From d192544c7fc3024155736c3a25b64f8a935f2f24 Mon Sep 17 00:00:00 2001 From: Ryan Hunt Date: Thu, 31 May 2018 10:46:28 -0500 Subject: [PATCH] Add two parsing only tests for #164 and #169 --- tests/expectations/both/global_attr.c | 3 +++ tests/expectations/both/nested_import.c | 3 +++ tests/expectations/global_attr.c | 3 +++ tests/expectations/global_attr.cpp | 6 ++++++ tests/expectations/nested_import.c | 3 +++ tests/expectations/nested_import.cpp | 6 ++++++ tests/expectations/tag/global_attr.c | 3 +++ tests/expectations/tag/nested_import.c | 3 +++ tests/rust/global_attr.rs | 1 + tests/rust/nested_import.rs | 1 + 10 files changed, 32 insertions(+) create mode 100644 tests/expectations/both/global_attr.c create mode 100644 tests/expectations/both/nested_import.c create mode 100644 tests/expectations/global_attr.c create mode 100644 tests/expectations/global_attr.cpp create mode 100644 tests/expectations/nested_import.c create mode 100644 tests/expectations/nested_import.cpp create mode 100644 tests/expectations/tag/global_attr.c create mode 100644 tests/expectations/tag/nested_import.c create mode 100644 tests/rust/global_attr.rs create mode 100644 tests/rust/nested_import.rs diff --git a/tests/expectations/both/global_attr.c b/tests/expectations/both/global_attr.c new file mode 100644 index 0000000..e26b4c5 --- /dev/null +++ b/tests/expectations/both/global_attr.c @@ -0,0 +1,3 @@ +#include +#include +#include diff --git a/tests/expectations/both/nested_import.c b/tests/expectations/both/nested_import.c new file mode 100644 index 0000000..e26b4c5 --- /dev/null +++ b/tests/expectations/both/nested_import.c @@ -0,0 +1,3 @@ +#include +#include +#include diff --git a/tests/expectations/global_attr.c b/tests/expectations/global_attr.c new file mode 100644 index 0000000..e26b4c5 --- /dev/null +++ b/tests/expectations/global_attr.c @@ -0,0 +1,3 @@ +#include +#include +#include diff --git a/tests/expectations/global_attr.cpp b/tests/expectations/global_attr.cpp new file mode 100644 index 0000000..6c1e42e --- /dev/null +++ b/tests/expectations/global_attr.cpp @@ -0,0 +1,6 @@ +#include +#include + +extern "C" { + +} // extern "C" diff --git a/tests/expectations/nested_import.c b/tests/expectations/nested_import.c new file mode 100644 index 0000000..e26b4c5 --- /dev/null +++ b/tests/expectations/nested_import.c @@ -0,0 +1,3 @@ +#include +#include +#include diff --git a/tests/expectations/nested_import.cpp b/tests/expectations/nested_import.cpp new file mode 100644 index 0000000..6c1e42e --- /dev/null +++ b/tests/expectations/nested_import.cpp @@ -0,0 +1,6 @@ +#include +#include + +extern "C" { + +} // extern "C" diff --git a/tests/expectations/tag/global_attr.c b/tests/expectations/tag/global_attr.c new file mode 100644 index 0000000..e26b4c5 --- /dev/null +++ b/tests/expectations/tag/global_attr.c @@ -0,0 +1,3 @@ +#include +#include +#include diff --git a/tests/expectations/tag/nested_import.c b/tests/expectations/tag/nested_import.c new file mode 100644 index 0000000..e26b4c5 --- /dev/null +++ b/tests/expectations/tag/nested_import.c @@ -0,0 +1,3 @@ +#include +#include +#include diff --git a/tests/rust/global_attr.rs b/tests/rust/global_attr.rs new file mode 100644 index 0000000..15afd03 --- /dev/null +++ b/tests/rust/global_attr.rs @@ -0,0 +1 @@ +#![allow(unused_variables)] diff --git a/tests/rust/nested_import.rs b/tests/rust/nested_import.rs new file mode 100644 index 0000000..e080d88 --- /dev/null +++ b/tests/rust/nested_import.rs @@ -0,0 +1 @@ +use std::{result, marker::PhantomData};