From 0a93dd76bc64c5941ae0699523cbb3e41c2d4a72 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 30 May 2008 14:11:31 +0000 Subject: [PATCH] we dont have an lvalue test, oops [r19847] --- parsetest/shouldfail/cpponly.c | 8 ++++++++ parsetest/shouldfail/lvalue.c | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 parsetest/shouldfail/cpponly.c create mode 100644 parsetest/shouldfail/lvalue.c diff --git a/parsetest/shouldfail/cpponly.c b/parsetest/shouldfail/cpponly.c new file mode 100644 index 0000000..aa97ddb --- /dev/null +++ b/parsetest/shouldfail/cpponly.c @@ -0,0 +1,8 @@ +int a; +int b; + +int main(int argc, char **argv) { + (void) argv; + argc ? a = b : b = a; + return 0; +} diff --git a/parsetest/shouldfail/lvalue.c b/parsetest/shouldfail/lvalue.c new file mode 100644 index 0000000..6e7f54d --- /dev/null +++ b/parsetest/shouldfail/lvalue.c @@ -0,0 +1,6 @@ +int a, b; + +int main(void) { + a + b = 20; + return 0; +} -- 2.20.1