From: Matthias Braun Date: Wed, 12 Dec 2007 00:03:09 +0000 (+0000) Subject: 2 test programs I had lying around here X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=524755e6c9e00c7aa78ecd7da9ecc3b15e795a43;p=cparser 2 test programs I had lying around here [r18689] --- diff --git a/parsetest/constexpr.c b/parsetest/constexpr.c new file mode 100644 index 0000000..059421a --- /dev/null +++ b/parsetest/constexpr.c @@ -0,0 +1,10 @@ +int k; + +enum ENUM { + bla = 2 < 4 ? 0 : k +}; + +int main(void) +{ + return bla; +} diff --git a/parsetest/shouldfail/cp_error003.c b/parsetest/shouldfail/cp_error003.c new file mode 100644 index 0000000..fb1511a --- /dev/null +++ b/parsetest/shouldfail/cp_error003.c @@ -0,0 +1,6 @@ +typedef int (functype) (int a); + +functype blo +{ + return a; +}