2 test programs I had lying around here
authorMatthias Braun <matze@braunis.de>
Wed, 12 Dec 2007 00:03:09 +0000 (00:03 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 12 Dec 2007 00:03:09 +0000 (00:03 +0000)
[r18689]

parsetest/constexpr.c [new file with mode: 0644]
parsetest/shouldfail/cp_error003.c [new file with mode: 0644]

diff --git a/parsetest/constexpr.c b/parsetest/constexpr.c
new file mode 100644 (file)
index 0000000..059421a
--- /dev/null
@@ -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 (file)
index 0000000..fb1511a
--- /dev/null
@@ -0,0 +1,6 @@
+typedef int (functype) (int a);
+
+functype blo
+{
+       return a;
+}