From: Matthias Braun Date: Fri, 30 May 2008 14:11:31 +0000 (+0000) Subject: we dont have an lvalue test, oops X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=0a93dd76bc64c5941ae0699523cbb3e41c2d4a72;p=cparser we dont have an lvalue test, oops [r19847] --- 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; +}