From 524755e6c9e00c7aa78ecd7da9ecc3b15e795a43 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 12 Dec 2007 00:03:09 +0000 Subject: [PATCH] 2 test programs I had lying around here [r18689] --- parsetest/constexpr.c | 10 ++++++++++ parsetest/shouldfail/cp_error003.c | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 parsetest/constexpr.c create mode 100644 parsetest/shouldfail/cp_error003.c 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; +} -- 2.20.1