summaryrefslogtreecommitdiffstats
path: root/test/input
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-06 19:37:38 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-24 15:37:20 (GMT)
commit4c2326f24a266c2ee7b88b50c5655fb2edbd082c (patch)
treee7fb3ec83ebc53519472a59dfab253bfbc8ebb17 /test/input
parentdc4d4e2dcdbf6464c864d7fa49e2da3a04cd3e76 (diff)
downloadCastXML-4c2326f24a266c2ee7b88b50c5655fb2edbd082c.zip
CastXML-4c2326f24a266c2ee7b88b50c5655fb2edbd082c.tar.gz
CastXML-4c2326f24a266c2ee7b88b50c5655fb2edbd082c.tar.bz2
test: Add cases for C-mode gccxml-like output
Although gccxml did not support C, it was occasionally requested. The gccxml output format supports C and Clang can easily handle parsing it. Add test cases that verify Clang can parse sources as C code and not C++.
Diffstat (limited to 'test/input')
-rw-r--r--test/input/FundamentalType.c1
-rw-r--r--test/input/Typedef-called-class.c2
-rw-r--r--test/input/invalid.c1
3 files changed, 4 insertions, 0 deletions
diff --git a/test/input/FundamentalType.c b/test/input/FundamentalType.c
new file mode 100644
index 0000000..ed6c3c8
--- /dev/null
+++ b/test/input/FundamentalType.c
@@ -0,0 +1 @@
+typedef int start;
diff --git a/test/input/Typedef-called-class.c b/test/input/Typedef-called-class.c
new file mode 100644
index 0000000..a5b9ca3
--- /dev/null
+++ b/test/input/Typedef-called-class.c
@@ -0,0 +1,2 @@
+typedef int class;
+typedef class start;
diff --git a/test/input/invalid.c b/test/input/invalid.c
new file mode 100644
index 0000000..2e739ef
--- /dev/null
+++ b/test/input/invalid.c
@@ -0,0 +1 @@
+class start;