diff options
author | Brad King <brad.king@kitware.com> | 2014-03-06 19:37:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-24 15:37:20 (GMT) |
commit | 4c2326f24a266c2ee7b88b50c5655fb2edbd082c (patch) | |
tree | e7fb3ec83ebc53519472a59dfab253bfbc8ebb17 /test/input | |
parent | dc4d4e2dcdbf6464c864d7fa49e2da3a04cd3e76 (diff) | |
download | CastXML-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.c | 1 | ||||
-rw-r--r-- | test/input/Typedef-called-class.c | 2 | ||||
-rw-r--r-- | test/input/invalid.c | 1 |
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; |